title: How can we upload image with other parameter in asp.net core API controller?
body: <p><strong>This is my postman request =&gt;</strong>
  <a href="https://i.stack.imgur.com/ZRp49.png" rel="nofollow noreferrer">https://i.stack.imgur.com/ZRp49.png</a></p>
  <p><strong>This is my controller method</strong>
  <a href="https://i.stack.imgur.com/V2ITY.png" rel="nofollow noreferrer">https://i.stack.imgur.com/V2ITY.png</a></p>
  <p>Actually I have URL something like this way - <strong>https://localhost:1111/api/user/1/avatar</strong>
  Now when I am hitting my endpoint then i am getting error like</p>
  <p>&quot;System.InvalidOperationException: Could not create an instance of type 'Microsoft.AspNetCore.Http.FormFile'. Model bound complex types must not be abstract or value types and must have a parameterless constructor. Alternatively, give the 'avatar' parameter a non-null default value.&quot;</p>
  <p>How can I upload image using above URL? I am using ASP.Net core 3.1 Web API.</p>