How to construct a multipart MIME request and POST it using AngularJS' $http method?
问题 How do I construct a multipart MIME request and POST it to a server API using AngularJS $http method? I am trying to upload an image to a server. The binary data of the picture should be part of the body of the request, done using the POST method and multipart MIME. The rest of the query parameters can be sent as query string parameters, or as other parts in the multipart MIME. Here's a capture of what a request should look like: POST https://webservice.platform.com/Service/V1/Service.ashx