Unable to open cloudinary upload widget v2.0
Hello All,
I have been trying to shift from cloudinary upload widget 1 to cloudinary widget v2.0 and followid are the issues I am facing with the upload widget.
1. takes too long to open widget. (30s to 1min)
2. cannot open the widget multiple times : after opening the widget once and closing it...if I try to open it again it fails to open or takes too long to open.
3. Can open the widgets in the firefox browser (2-3 times) but not on the chrome browser. In chrome either it opens once or it doesn't at all.
4. After one upload widget called and used if I try to open another doesn't open.
Below is the sample code I have used :-
var myUploadWidget2;
document.getElementById("upload-photo").addEventListener("click", function () {
myUploadWidget2 = cloudinary.openUploadWidget({
cloudName: configuration.cloudinary_cloudName,
uploadPreset: "1920px",
},
function (error, result) {
//Step 2.3: Listen to 'success' event
if (result.event === "success") {
//Step 2.4: Call the .close() method in order to close the widget
state.live_profile_pic = result.info.url
myUploadWidget2.close();
} else {
console.log("ERROR", error)
}
});
myUploadWidget2.open();
}, false);
JS framework used : Vue....
On click it does enter the function containing the above code but doesn't open widget.
What could be the possible reasons of such behaviour and how it be resolved?
-
Hi Nidhi.
I see you have submitted us a support ticket too, which I have just replied to. Once we come to a resolution for your problem, we'll provide a final response here for the benefit of anyone encountering a similar issue in the future.
Thanks,
-Danny0
Post is closed for comments.
Comments
1 comment