title: C# save files to folder on server instead of local
body: <p>The project is an MVC 4 C# based web application.</p>
  
  <p>I'm currently working locally and would like to have the ability to upload a file to my locally running application in debug mode and have the file saved to the web server instead of the my local folder.</p>
  
  <p>Currently we are using:</p>
  
  <pre><code>if (!System.IO.File.Exists(Server.MapPath(PicturePath)))
  {
       file.SaveAs(Server.MapPath(PicturePath));
  }
  </code></pre>
  
  <p>How can we leverage this code to save to a webserver directly. Is that even possible?</p>
  
  <p>Right now the file gets saved to my local path and the path is stored in the database, we then have to upload the files to the webserver manually.</p>