I have a post method with below signature,
[HttpPost] public ActionResult SavePriorAuthorization(MainPriorAuthorization priorAuthorization, IFormFile file)
Now I want to pass the object along with the file from a postman. I have tried the following option which doesn't work.
This gives an error, System.ArgumentNullException: Value cannot be null.Parameter name: header
Header Type : multipart/form-data
Any help would be appreciated.