title: Changing the HttpPostedFileBase.SaveAs destination directory
body: <p>I'd like to save an uploaded file outside the project's directory. When I use <code>HttpPostedFileBase.SaveAs(path)</code> the file destination will be in the server's directory.</p>
  
  <p>For example:</p>
  
  <pre><code>HttpPostedFileBase fileurl = null;
  
  foreach (string file in Request.Files)
  {
      fileurl = Request.Files[file];
  }
  
  string extension = Path.GetExtension(fileurl.FileName);
  if (extension == ".zip" || extension == ".rar")
  {
      if (fileurl != null &amp;&amp; fileurl.ContentLength &gt; 0)
      {
          var fileName = Path.GetFileName(fileurl.FileName);
          var path = AppDomain.CurrentDomain.BaseDirectory + fileName;
          fileurl.SaveAs(path); 
  </code></pre>
  
  <p>The <code>path</code> is always in the project's directory.</p>
  
  <p>I'd like to save my uploaded directory everywhere I want. How can I change the code to do it?</p>