Hi 김진우, 

For a multi-part form you need to build one into your data using the new 
formData api. Also you need to use a little trick.
Here is a small sample:
var fd = new FormData(); 
fd.append('title', angular.toJson($scope.title)); 
$http.post(uploadUrl, fd, { 
    transformRequest: angular.identity,
    headers: {'Content-Type': undefined}
 }).then(....)

The tranformrequest puts in a `special handler` for multi-part form data. 
The angualr.identity is a function that returns the parameters unchanged. 
That sounds more complex as it is, think like this: function(parameter) 
{return parameter;}. With this, you tell angular not to mess with the 
content, and leave it as is. Then the content-type is set to undefined. 
This way, you let the browser take care of this. 

I hope this helps you a bit,
Regards
Sander





-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to