title: Get the absolute path of a file to be uploaded
body: <p>I am uploading a file using a simple FileUpload control named <code>theFile</code> (ASP.NET). I'm trying to get the absolute path of the file, but <code>thefile.PostedFile.FileName</code> and <code>thefile.FileName</code> are the exact same, just the file name, no path! I can't use Server.MapPath because I will be saving this file on a different server (transferring via byte array through a webservice).</p>
  
  <p>It breaks at this line:</p>
  
  <pre><code>Dim fStream As New FileStream(thefile.FileName, FileMode.Open, FileAccess.Read)
  </code></pre>
  
  <p>because it is taking the filename and mapping it to the relative path of my VS! I need the absolute path...</p>