Click here to Skip to main content
15,898,036 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Is anyone there who can tell me how can i get complete path of files uploaded by client as (C:\Users\Documents\ABC.mp3) given by File Uploader control any other way to get complete path of client's uploaded files in asp.net/C# and in all browsers???????
Posted
Comments
bbirajdar 26-Sep-12 9:30am    
Not possible due to browser security....
I.explore.code 26-Sep-12 9:41am    
That will be a security risk if the server can access the exact path on the client's machine and that's why Fileupload control doesn't allow you to see full path in your C# code.

1 solution

Nope. The only thing the server can see is the filename and the actual filestream. As gladiatron and aspnet_regiis say in their comments, this is a browser security issue.
 
Share this answer
 

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