To get the complete physical path of the file on firefox.
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. sale ne bada dimag khrab kiya. phle to problem pata hi ni chali, but baad me ho gya.
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.
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment