title: 415 Unsupported Media Type asp.net core
body: <h1>Detail</h1>
  
  <p>I am trying to post a file from Postman to the endpoint I have created. but it gives me this error. I am not passing the header Content-Type in postman</p>
  
  <blockquote>
    <p>415 Unsupported Media Type</p>
  </blockquote>
  
  <h1>API</h1>
  
  <pre><code>[Consumes("multipart/form-data")]
  [HttpPost]
  public async Task&lt;IActionResult&gt; SendEmail([FromBody]Entity entity)
  {
      try
      {
  
          return OK();
      }
      catch (Exception e)
      {
          throw e;
      }
  }
  </code></pre>
  
  <h1>Class</h1>
  
  <pre><code>public class Entity 
  {
      public List&lt;IFormFile&gt; Files { get; set; }
  }
  </code></pre>