Home > DeveloperSection > Forums > Display only file name in FileUpload control
Samuel Fernandes
Samuel Fernandes

Total Post:159

Posted on    August-23-2014 8:32 AM

 ASP.Net ASP.Net 

 1 Reply(s)
 1056  View(s)
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?

Sumit Kesarwani

Total Post:378

Posted on    August-23-2014 8:36 AM

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.

Don't want to miss updates? Please click the below button!

Follow MindStick