How To Accept a File POST

前端 未结 13 1617
深忆病人
深忆病人 2020-11-22 09:48

I\'m using asp.net mvc 4 webapi beta to build a rest service. I need to be able to accept POSTed images/files from client applications. Is this possible using the webapi?

13条回答
  •  时光取名叫无心
    2020-11-22 10:23

    I had a similar problem for the preview Web API. Did not port that part to the new MVC 4 Web API yet, but maybe this helps:

    REST file upload with HttpRequestMessage or Stream?

    Please let me know, can sit down tomorrow and try to implement it again.

提交回复
热议问题