Display only file name in FileUpload control

Total Post:159

Points:1117

 1624  View(s)
Ratings:
Rate this:

I have a FileUpload control. When a user clicks on the "Browse" button , the control displays a file select popup . When the user selects the file , by default the full path to the file is shown in the textbox. However, I wish for it to only display the file name and not the full path.

 Anyone know easy way to do this?

  1. Re: Display only file name in FileUpload control

    Hi Samuel, 


    The FileUpload control is essentially an html <input type="file">

    As such, the browser determines how to render it. You have no control over this.

Answer

Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.