I am trying to upload file locations to my ASP .Net project. This would be so we can track location of all files used for a project. We also like a Hyperlink for each location so we can click and bring up the document.
When I use
<input type="file" id="myFile" name="myFile" />
HttpPostedFile file = Request.Files["myFile"];
string pathToFiles = Server.MapPath(file.FileName);
Only if you used
Server.MapPath(...) would you be able to do this, however this is dependent on the server having that location mapped.
Your best solution would be to use the fully qualified name
\\server\share\file if you're working on a domain \ LAN based site.