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




Reply With Quote
