getting full path name using FileUpload control's FileName property
-
hello any one may please help me! is it not possible to get the full path using FileUpload control FileName property? I am asking this because when selected a file for uploading in C drive (C:\filename.ext) and when I click on send mail it shows an error saying that the file is not available in the path "C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\WebSites\...". :rose: thanks in advance :rose:
Kovuru Sreedhar
-
hello any one may please help me! is it not possible to get the full path using FileUpload control FileName property? I am asking this because when selected a file for uploading in C drive (C:\filename.ext) and when I click on send mail it shows an error saying that the file is not available in the path "C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\WebSites\...". :rose: thanks in advance :rose:
Kovuru Sreedhar
Re Post...
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
-
Re Post...
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
so what if can answer answer it .right .
Kovuru Sreedhar
-
so what if can answer answer it .right .
Kovuru Sreedhar
System.IO.Path.GetFullPath(FileUpload1.PostedFile.FileName);
-
System.IO.Path.GetFullPath(FileUpload1.PostedFile.FileName);
thanks for your valuable help.It really solved my problem.
Kovuru Sreedhar