Display only file name in FileUpload control

Posted by Jagd on Stack Overflow See other posts from Stack Overflow or by Jagd
Published on 2011-01-17T18:46:55Z Indexed on 2011/01/17 18:53 UTC
Read the original article Hit count: 174

Filed under:
|

I have a webpage in asp.net 3.5 that uses the FileUpload control. When a user clicks on the "Browse" button (which is part of the control) the control displays a file select popup (dialog box). When the user selects the file which they wish to upload, by default the full path to the file is shown in the textbox (which is also part of the control); however, I wish for it to only display the file name and not the full path. Anyone know of a slick and easy way to do this?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about file-upload