Last post Dec 21, 2015 08:10 AM by Nan Yu
Dec 20, 2015 02:46 AM|eddadjei|LINK
I have a question and would like to get some suggestion as to how to proceed. I have a basic html form and it has a couple of text input fields. I also have 2 image uploads. One for mobile and one desktop images. How do I post this data to a WebAPI endpoint?
Also what are some suggestions handle a form data containing image elements.
Dec 20, 2015 04:14 AM|sreejukg|LINK
Refer the below tutorial that explains this in detail.
Dec 20, 2015 09:08 AM|damienBod|LINK
here's an example with form data and multiple files
Dec 21, 2015 08:10 AM|Nan Yu|LINK
WebAPI built-in formatters only support the following media types: application/json, text/json, application/xml, text/xml and application/x-www-form-urlencoded .
For multipart/form-data, which is what you are sending, Please refer to
Sending HTML Form Data and
ASP.NET WebApi: MultipartDataMediaFormatter .