title: Postman file and json returns 415 even with Content-Type Header .net core
body: <p>I am using postman to test my .net core API, when i am trying to post data via postman form-data this returns a 415 even if i set the Content-Type header to application/json as the common solution for this issue appears to be online.
  If i fire the request without any files via the raw postman option and set the content type as JSON(application/json) this request reaches the API successfully.</p>
  
  <p>Here is how my API looks:</p>
  
  <pre><code> [HttpPost("{organization}")]
      public IActionResult Post([FromBody] Asset asset, string organization)
      {
         //Api body
         //Get files from request
         Task uploadBlob = BlobFunctions.UploadBlobAsync(_blobContainer,Request.Form.Files[0]);
      }
  </code></pre>
  
  <p>And here is how the failed postman request looks like
  <a href="https://i.stack.imgur.com/BY508.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BY508.png" alt="enter image description here"></a></p>
  
  <p>and the header for that request</p>
  
  <p><a href="https://i.stack.imgur.com/KajPn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KajPn.png" alt="enter image description here"></a></p>
  
  <p>What else am i missing for this to work?</p>
  
  <p><strong>Small update</strong></p>
  
  <p>This works fine if i remove <code>[FromBody]Asset asset</code> and just pass the file</p>