DISPLAY ONLY FILE NAME IN FILEUPLOAD CONTROL

Samuel Fernandes

Total Post:159

Points:1117
Posted by  Samuel Fernandes
 1082  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. Sumit Kesarwani

    Post:378

    Points:2694
    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

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!