Thursday, March 19, 2015

Uploading multipart form in angularJS

//create formData first

$http.post(url, formData,
            {
                transformRequest: angular.identity,
                headers: {'Content-Type': undefined}
            })
                .success(function(data, status, headers, config) {
                   
                })
                .error(function(data, status, headers, config) {
                          
           });

No comments:

Post a Comment