You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we are trying to use IFormFile it works perfectly when we are not using [ApiController], as soon as we introduce ApiController one of two things happens
If we do not prefix with [FromForm] we get a Serialization exception which generates a Bad Request response.
If we do prefix FromForm to the IFormFile then it becomes null
In order to get IFormFile to work we need to remove ApiController completely in which case the IFormFile becomes completely propagated correctly.
The text was updated successfully, but these errors were encountered:
When we are trying to use
IFormFile
it works perfectly when we are not using[ApiController]
, as soon as we introduceApiController
one of two things happens[FromForm]
we get aSerialization
exception which generates aBad Request
response.FromForm
to the IFormFile then it becomesnull
In order to get IFormFile to work we need to remove
ApiController
completely in which case the IFormFile becomes completely propagated correctly.The text was updated successfully, but these errors were encountered: