How do I retriev (get) the full string (complete path) value from a <asp:FileUpLoad> control?

Michael Sterling
Michael Sterling used Ask the Experts™
on
How do I retriev (get) the full string (complete path) value from a <asp:FileUpLoad> control? The FileName property only gives me,...well,...the file name, not the complete path including the file name.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
string fileLoacation=FileUpload1.PostedFile.FileName;
Dave BaldwinFixer of Problems
Most Valuable Expert 2014
Commented:
If you mean upload from a browser to a server, IE8+ no longer provides the path in the Internet Zone.  I don't believe that the other browsers send it either.  That is mentioned in both of the links above.
Michael SterlingWeb Applications Developer

Author

Commented:
thanks

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial