Skip Navigation LinksHome > Categories > Code from a Category FileUpload Control Firefox and IE read file names differently

User Name: jamest85
Name: James Tang
Contact Me:
Home Page:
Google Apps for Work Partner, Certified Zoho CRM Consultant. 7 years experience on Zoho consulting, implementation, and programming using C#, VB, Php..., 15 years of total IT experience including prog... [More]
Viewed Times: 2892
Add Date: 05/19/2010
In FileUpload Control, FileUpload1.PostedFile.FileName will return different values in Firefox and IE, in IE it will return the full path with the file name, in Firefox, will only return the file name, here is the way to get both of the values in both browsers.

Post a Comment

Name: (Optional)
Email: (Optional, you can get an email if somebody replys your comments)*
Email me if somebody respons my comment below:
Enter Text
as Below:
(case insensitive, if hard to read, click the "get a new one" button)
* Your email address will not be shared with any third parties for any reason.
** Maximum 1000 charactors.