Click here to Skip to main content
15,881,204 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am using the file uploader control. but i don1t get the full path of client machine for the uploaded file.
so ,what code is useful for me...

i use code behind like:

C#
string path = "",file_path="";
     path = Server.MapPath("./Document Attchment/");

     if (FileUpload1.HasFile)
     {
         file_path = FileUpload1.filename;

}

i wnt to get full path from the client machine
Posted

1 solution

You can't.

The full path is not available for security reasons (and it would be meaningless, since the client does not have to be a PC at all, and thus doesn't have to have a "path" your would recognise as such)
 
Share this answer
 
Comments
Ankur\m/ 30-Apr-12 5:55am    
You can't... simply because no one, yes NO one will want to use IE6 again. :laugh:
[no name] 30-Apr-12 6:32am    
so it is impossible to get client source file path.
OriginalGriff 30-Apr-12 6:36am    
Yes.
[no name] 30-Apr-12 6:55am    
thankkssssss

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900