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
Perhaps it is late for the party. But there is an alternative solution for this is to use ApiMultipartFormFormatter plugin.
This plugin helps you to receive the multipart/formdata content as ASP.NET Core does.
In the github page, demo is already provided.