I am trying to figure this out. I was not getting any useful error messages with my code so I used something else to generate something. I have attached that code after the
5 years later on and .NET Core 3.1 allows you to do specify the media type like this:
[HttpPost] [Consumes("multipart/form-data")] public IActionResult UploadLogo() { return Ok(); }