title: File upload C# .NET Framework 5
body: <p>I'm struggeling with .NET 5 (MVC Framework). I would like to upload a file, but I don't know how to retrieve the uploaded file in the controller.
  The way it works on previous .NET Versions does not longer work (With HttpPostedFileBase, see an Example <a href="http://www.mikesdotnetting.com/article/259/asp-net-mvc-5-with-ef-6-working-with-files" rel="nofollow">here</a>).</p>
  
  <p>My form is a very small form with a file input:</p>
  
  <pre><code>&lt;form method="post" enctype="multipart/form-data"&gt;
      &lt;input type="file" name="file"&gt;
      &lt;input type="submit" name="submit" value="Upload"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>My controller looks like this:</p>
  
  <pre><code>public class FittingController : Controller
  {
      [HttpPost]
      public IActionResult Index(IndexViewModel viewModel)
      {
          // How to retrieve uploaded file here?
      }
  }
  </code></pre>
  
  <p>Has someone already made experiences with .NET Version 5?</p>
  
  <p>Thanks in advance.</p>