Send IformData as a field within Postman

  Kiến thức lập trình

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

public override async Task<ActionResult> HandleAsync([FromBody] UploadRequest request)

How can I post these data properly?

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website