Hi All,

Is there a way for me to get the original file location of the file being uploaded?

File Location: "c:\Program Files\Test Document\apple.txt"

If I'm going to use the FileUpload:

Code:
<asp:FileUpload runat="server" id="fileUpload"></asp:FileUpload>
Code Behind:
Code:
var filePath = Path.GetFullPath(fileUpload.PostedFile.FileName);
The code above gives me this path: "C:\Program Files (x86)\IIS Express\apple.txt" instead of "c:\Program Files\Test Document\apple.txt"

Thanks in advance.