hello i'm korean so i know a little english
i was execute angular.js post and form post
angular.js execute :
$http
({
method: 'POST',
url: 'myurl', -> java sevlet
data: angular.toJson($scope.title),
file: $scope.files,
headers: { 'Content-Type': "multipart/form-data;
boundary=ZYDa6MZ62846kJOUYu9kybvA750KGm3r" }
})
result : MultipartHttpServletRequest data is null and
Accept:application/json, text/plain, */*
form excute :
<form action="myurl" method="POST" enctype="multipart/form-data"
ng-controller="PictureBoardWriteCtrl">
result : MultipartHttpServletRequest data is not null and
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
so i did change $http accept
->
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
but $http post MultipartHttpServletRequest data is null
i don't know result
why is it?
--
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.