Multiple Upload Widgets on the same page
I am using an upload widget in a way that you described in your guide - https://cloudinary.com/documentation/upload_widget.
But I cannot use multiple widgets on the same page, because they are overwriting each other.
Is there any way to give them different context?
-
Hi Jungal, Andrea,
Multiple widget instances could indeed overwrite each other, however, in some case these could work fine.
For example, this JSFiddle includes an example of initiating 2 instances of the widget - https://jsfiddle.net/eyalkt/ro5map8z/ (be sure to set your cloud name and upload preset)
In order for me to try and find a suitable solution for your use case, could you kindly share additional details/examples of the issues you've encountered when trying to initiate multiple widget instances?Thanks!
-
Hi Shawn,
Have you tried using the code sample from https://jsfiddle.net/eyalkt/ro5map8z/ where 2 upload widgets were created (widget1 and widget2).
Thanks.
Post is closed for comments.
Comments
5 comments