I need to provide a way for the user to specify a path to a file on his machine on my intranet web application, and the ASP:FileUpload control provides a nice dialog to do that, however it also transfers the contents of the file over. Since I only need the file path and not the contents, is there another way to achieve this?
Share
UPDATE : The code below will return the full file path in IE, but for security reasons, firefox and chrome only give you the file name. This might be a bit of a problem 🙂
I took the liberty of implementing the solution given by RaYell. Here’s the code:
Default.aspx (markup):
Default.aspx.cs (code-behind)