Well, I've worked on uploading video function for AngularJS project via API. When I tried to execute some testing on upload function, it returns below error; both in browser console and Postman.
At first, I thought there are issue(s) with the API itself; or at least the code for API. This API is developed in C#. But after some digging, I found out that it can be fixed just by adding this configuration in web.config. It's really that simple! :)
API's web.config
References:
1. Web API cannot parse multipart form data post
2. Error reading MIME multipart body part client disconnected
Error reading MIME multipart body part
At first, I thought there are issue(s) with the API itself; or at least the code for API. This API is developed in C#. But after some digging, I found out that it can be fixed just by adding this configuration in web.config. It's really that simple! :)
API's web.config
<configuration> <system.web> <httpRuntime targetFramework="4.5" maxRequestLength="214748364" executionTimeout="3600"/> </system.web> </configuration>
References:
1. Web API cannot parse multipart form data post
2. Error reading MIME multipart body part client disconnected