I want to upload multiple images in parallel to the server using Alamofire
or NSUrlSessions
and get responses for all the uploaded images using MVVM model
Asked
Active
Viewed 246 times
0

Kaushik Makwana
- 1,329
- 2
- 14
- 24

PPreeti
- 67
- 3
-
I also have same issue where I have to upload multiple files i.e If I have 10 images then I have to call same Api for 10 times asynchronously and get the responses for all request.I am also using mvvm pattern – Satheeshkumar Naidu Apr 16 '19 at 05:32
-
[This](https://stackoverflow.com/a/51738817/2395636) might help. – Kamran Apr 16 '19 at 05:38
-
@Kamran I have to store the response I have to know to which request i am getting the response. – Satheeshkumar Naidu Apr 16 '19 at 06:02
-
Use operation queue and count how many operations are left? – stevenpcurtis Apr 16 '19 at 08:01
-
you can check this link may help [link](https://stackoverflow.com/questions/41499768/upload-multiple-images-in-swift-using-alamofire) – Prabhat Apr 16 '19 at 08:12
-
@stevenpcurtis can you give some reference link – Satheeshkumar Naidu Apr 17 '19 at 05:01