title: ASP.NET Save file InputStream
body: <p>I am trying to upload a file to a folder in ASP.NET, so far I have gotten the file stream like so:</p>
  
  <pre><code>public void Upload()
          {
              foreach (string file in Request.Files)
              {
                  var fileContent = Request.Files[file];
                  if (fileContent != null &amp;&amp; fileContent.ContentLength &gt; 0)
                  {
                      var stream = fileContent.InputStream;
                      var fileName = fileContent.FileName;
                      //you can do anything you want here
                  }
              }
  
              foreach (string key in Request.Form)
              {
                  var value = Request.Form[key];
              }
          }
  </code></pre>
  
  <p>I just dont know how to save it....Im soooooo tired.</p>