title: Why shouldnt I use IFormFile for large uploads
body: <p>Using .net core 2.1</p>
  
  <p>As per Microsoft <a href="https://docs.microsoft.com/en-us/aspnet/core/mvc/models/file-uploads?view=aspnetcore-2.2" rel="noreferrer">documentation</a> , IFormFile should be used to deal with small uploaded files, whereas MultipartReader should be used for larger files. Fair enough.</p>
  
  <p>However, they also say </p>
  
  <blockquote>
    <p>Files uploaded using the IFormFile technique are buffered in memory or on disk on the web server before being processed. Inside the action method, the IFormFile contents are accessible as a stream. </p>
  </blockquote>
  
  <p>So if large files are sent to disk, and read with a stream, why shouldnt we always use IFormFile? I don’t get the reason why MultipartReader if larger files are not completly loaded in RAM anyway.</p>
  
  <p>Could anyone explain what I’m missing here?</p>