title: FromForm with IFormFile using Asp.net Core
body: <p>I want to upload an Image file with Model data so I am using <code>FromForm</code> with <code>IFormFile</code> in <code>Asp.net core</code> api.</p>
  
  <pre><code>[HttpPost]
  public IActionResult AddData([FromForm] AddDataModel addDataModel, IFormFile formFile)
  {
       // Logic here...
  }
  </code></pre>
  
  <p>I am using <code>Angular 7</code> in the frontend side. I am adding model data and file to <code>FormData</code> and trying to send it but It always all model fields values null.
  <br><br>
  What is the right way to solve this?</p>