Problems with Upload Widget v2 api
Hi All,
I am trying to update from Version 1 to Version 2 of the Upload Widget: https://cloudinary.com/documentation/upload_widget_2#api_events
The old widget returned a set of Images in an Array which I then used an API to processes thumbnails.
The new widget returns a JSON object which is messing up my code..
I have created a function to make an Array from the JSON, but it is creating multiple versions of each image as it is running on each Successful result..
How can I make it so it simply returns an array with the objects that I upload?
-
Can you please elaborate on why you're placing the response inside an array?
If you take a look at
result.infoit is the same structure as the previous version response. If you wish to place this response into a single array, then you can simply add brackets around the response. For example,if (result.event == "success") { var arr = [result.info]; console.log(arr); }0
Post is closed for comments.
Comments
1 comment