CipherIS
asked on
ASP.NET 2.0 - Get PathName From File Upload Control
I am utilizing a file upload control. I know that you can obtain the FileName (c:\directoryA\DirectoryB\ FileA.doc) utilizing: FileUpload.FileName. The result would return "FileA.doc".
But I need to actual path. How do I get "c:\directoryA\DirectoryB\ "?
But I need to actual path. How do I get "c:\directoryA\DirectoryB\
If I'm not mistaken FileUpload.PostedFile.File Name shoudl do the trick.
I don't think it is possible to get the actual path.......ASP.NET is not exposing that path this is because it is a web application and file path at client machine is not relevant at sever which is a different machine.......
by the way why do you need it...........
by the way why do you need it...........
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.