Click here to Skip to main content
15,881,812 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
how to get the full path of file upload control in asp.net when we browse file from any location.


What I have tried:

how to get the full path of file upload control in asp.net when we browse file.
Posted
Updated 20-Jul-16 23:50pm

1 solution

You can't. This is a deliberate security feature: it does not reveal anything about the environment on the client to the server. All you get is the file name: the path is meaningless because the server is not in the same environment and can't use it anyway.
The only time it could be of use is if you were restoring a file to it's original location on the client computer - and the browser won't let you do that either!
 
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