Status code 202 after $http file upload request + ANGULARJS

182 views
Skip to first unread message

Rep Dev

unread,
Nov 21, 2013, 9:41:36 AM11/21/13
to ang...@googlegroups.com
My target is to upload a file in angularjs...i'm doing it by calling a web service and passing it some data anda a file...a month later it was all right but at the moment this tecnique doesn't work...
I'm calling ws with $http and then processing the response in this way:

$http(myconfig).success(response).error(error)

the problem is that the response is a 202 code only and any response values aren't passed to me from the server...but if I use Advanced Rest Client to simulate the ws call, it works...I'm sure my ws call is right!

help???

is a my code problem? web server problem? angularjs problem? js problem?

Rajesh Segu

unread,
Nov 22, 2013, 2:31:50 PM11/22/13
to ang...@googlegroups.com
I am assuming it could be a problem with how you are passing the file object to be uploaded. Can you add more code to show how you do that.

- Rajesh Segu
Reply all
Reply to author
Forward
0 new messages