title: ASP.NET Core Image Upload and Resize
body: <p>How do you get the file stream of an uploaded image (<code>IFormFile</code>) and resize it?</p>
  
  <pre><code>public ActionResult Upload(IFormFile file)
  {
      using (var reader = new StreamReader(file.OpenReadStream()))
      {
          var fileContent = reader.ReadToEnd();
          var parsedContentDisposition = ContentDispositionHeaderValue.Parse(file.ContentDisposition);
  
          //scale image here?
      }
  }
  </code></pre>