We want to upload multiple images on ajax. The number of images uploaded varies from 2 to 10 at a time. We want to do follow-up operations after all uploads such as deferred are completed.
you can use
$.when (ajax1,ajax2)
.done (.)
.fail (.)
, but the question is how many loops we need in our when () depends on the number of user images. How do we deal with this?
Thank you.