title: Why file IFormFile = null?
body: <pre><code>[Route("api/file")]
  [Produces("application/json")]
  [Consumes("application/json", "application/json-patch+json", "multipart/form-data")]
  [ApiController]
  public class FileController : ControllerBase
  {
      public FileController()
      {
      }
  
      [HttpPost]
      public async Task&lt;IActionResult&gt; PostProfilePicture([FromQuery]IFormFile file)
      {
          var stream = file.OpenReadStream();
          var name = file.FileName;
          return null;
      }
  }
  </code></pre>
  
  <p>Postman</p>
  
  <p><a href="https://i.stack.imgur.com/wbdps.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wbdps.png" alt="enter image description here"></a></p>
  
  <p>Debug</p>
  
  <p><a href="https://i.stack.imgur.com/iZYjz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iZYjz.png" alt="enter image description here"></a></p>
  
  <p>In the end file = null
  How to solve this problem?</p>