Hi,
Yesterday i was working with some page to upload files using asp.net uploader, tht was working well on IE but not on firefox.
FileUpload1.PostedFile.FileName file uploader does not provide physical path of the file, if we are using firefox.
It works well on internet explorer but if we are using firefox then it will return just file name of the posted file.
u can use following code for same:
System.IO.Directory.GetParent(FileUpload1.PostedFile.FileName).ToString() + “//” + FileUpload1.FileName;
Thanks,
Nitin Dhiman.
No comments:
Post a Comment