title: Why is my file upload from Angular to .NET core web api not working?
body: <p>In my Angular application I am using a control: <a href="https://github.com/valor-software/ng2-file-upload" rel="nofollow noreferrer">https://github.com/valor-software/ng2-file-upload</a></p>
  
  <p>This control does a post with a file to my .NET core web API. Here is a short example, which is not really important.</p>
  
  <pre><code>public uploader: FileUploader = new FileUploader({url: `${environment.apiBaseUrl}/file`});
  </code></pre>
  
  <p>Eventually the control does a post to this .NET core web api action:</p>
  
  <pre><code>[Route("[controller]")]
  public class FileController : Controller
  {
      [HttpPost]
      public void Post(IFormFile uploadedFile)
      {
          var file = uploadedFile;
          _fileSystemProvider.SaveToFileSystemAsync(_uploadSettings.GetReplacedDirectoryPath(), file.FileName, file.OpenReadStream());
      }
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/nmJIE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nmJIE.png" alt="enter image description here"></a>
  The file upload is posting to the .NET web api, confirmed using the console in Chrome, <strong>but</strong> the <em>uploadedFile</em> parameter is <code>NULL</code>.</p>
  
  <p>Why is this happening?</p>