Advertise with us

Display only file name in FileUpload control

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?

Last updated:8/23/2014 8:36:14 AM

1 Answers

Sumit Kesarwani
Sumit Kesarwani

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