I have a serious bug in .NET application:
There is a form with the file input field:
<form id="f1" runat="server" enctype="multipart/form-data">
<input id="File1" type="file" runat="server" />
...
When I fetch the file to be uploaded, I have different results in Internet Explorer and Firefox! IE returns the whole path (I don't want that) and FF returns just file name (that's what I want), so
Response.Write(File1.PostedFile.FileName)
Internet Explorer produces:
D:\Images\imagename.jpg
Firefox produces:
imagename.jpg
Help! How to overcome it? I need just the file name, not the whole path!
BTW, I tried using web control asp:FileUpload instead, but with the same result!
...
Go to the complete details ...