queues-end event fires before success event
I am using the upload widget to upload multiple images and i want to collect all the public_ids so that I can store them on my server. I am using vuejs.
So, when I get a success event from the widget, I push the public id to an array. This array is being send by axios to my back end when the queues-end event fires. The problem is that the queues-end event fires before the last file upload gives a success event. If I try to upload 4 files at a time my axios request does not contain all 4 public_ids but only the first 3.
Is this normal behavior? Does the queues-end event fires before the last file on the que gives a success event? If so, how can I sent all public_ids on the same axios request?
-
Hi Michalis,
Here is a sample of upload widget with the cloudinarywidgetsuccess event returning all the public_id's : https://jsfiddle.net/78c24hon/
Please update the cloud name and upload preset and you will see the array returning all the public_id's in the browser console.
Regards,
Aditi
0
Post is closed for comments.
Comments
1 comment