Click here to Skip to main content
15,885,767 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi friends,

I just needed to take the full path of the uploaded file from client Machine.

I tried


strDir = Upload1.PostedFile.FileName

strDir = System.IO.Path.GetFullPath(Upload1.PostedFile.FileName)

with upload control, but it doesn't work that kind.


I too know that security concerns will not allow the server to be aware of the file path, but are there any other alternate options to retrieve the file path. If yes please reply to the post....
Posted
Comments
F-ES Sitecore 2-Jun-15 4:08am    
Your question is like saying "I know this lock means I can't open the door but is there some other way I can open the door?" When something isn't possible for security reasons, it would be pointless if it was available via some other method.

1 solution

No ways. Browsers won't allow this. Moreover, you don't need this actually.

Review your requirements again. If you have any questions, please feel free to add a comment here.
 
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