This is my postman setup;
[![enter image description here][1]][1]
for the request object;
public class UploadRequest
{
public List<IFormFile> File { get; set; }
public EntityType EntityType { get; set; }
public int ReferenceId { get; set; }
}
And it returns “Unsupported Media Type” status code 415
here is the API
[AllowAnonymous]
[HttpPost("api/[namespace]")]
public override async Task<ActionResult> HandleAsync([FromBody] UploadRequest request)
{
How can I post these data properly?
[1]: https://i.sstatic.net/vVkCzRo7.png