saved my day... :)
On Monday, August 6, 2012 5:08:02 PM UTC+5:30, David Krutky wrote:
>
> Anyone knows how to use FormData object with $http service? Because this 
> doesn't seem to work:
>
> var payload = new FormData();
> payload.append("CustomField", "This is some data");
> $http.post(url, payload);
>
> Result from this is post with an empty object. Maybe set header to 
> somethink else?
>
> The reason I am using FormData is, that it can let you easily upload files.
>

-- 
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