1
I am trying to send files to my api via 'POSTMAN', but when the request arrives at the API endpoint 'Iformfile' always comes empty.
POSTMAN
Controller
[AllowAnonymous] //utilizada apenas para teste - alterar para as roles
[HttpPost("UploadFile")]
public async Task<IActionResult> UploadFile([FromForm]IFormFile file)
{
var teste2 = HttpContext.Request.Form.Files //-> null
var teste file; //-> null
var path = Path.GetTempFileName();
return Ok();
}
that’s right, saved me dear vlw
– Evandro Ignacio