Upload files and JSON in ASP.NET Core Web API

前端 未结 8 1263
夕颜
夕颜 2020-11-29 18:12

How can I upload a list of files (images) and json data to ASP.NET Core Web API controller using multipart upload?

I can successfully receive a list of files, upload

8条回答
  •  南方客
    南方客 (楼主)
    2020-11-29 18:17

    I am not sure if you can do the two things in a single step.

    How I have achieved this in the past is by uploading the file through ajax and returning the file url back in the response and then pass it along with post request to save the actual record.

提交回复
热议问题