I recently started working on ionic framework using angular JS. Here is my problem with $http.post
My requirement is I need to upload photos to my server. User selected bunch of photos (say 15), and starts uploading to server. Here is my code for uploading to server
foreach(photo in photoList){
$http.post(url,photo).then(success(){},error(){})
}
Now my problem is out of 15 only 6-7 photos are uploading. For remaining photos $http.post()
calls are not even getting called. I heard there might be $http
concurrent issues. Is that correct?
If so how to resolve this issue?