How to set up a Web API controller for multipart/form-data

前端 未结 8 2165
萌比男神i
萌比男神i 2020-11-27 02:51

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

8条回答
  •  醉酒成梦
    2020-11-27 03:41

    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.

提交回复
热议问题