1 min readJun 24, 2020
"createUploadWidget" worked for me
this worked for me ```methods: {
openCloudinaryWidget(){
const widget = this.createCloudinaryWidget()
widget.open()
},
createCloudinaryWidget() {
const newWidget = cloudinary.createUploadWidget(
{
cloudName: "cloud_name",
uploadPreset: "unsigned preset",
multiple: false,
maxFiles: 1,
cropping: true,
croppingAspectRatio: 1,
croppingCoordinateMode: "face",
clientAllowedFormats: ["png", "gif", "jpeg"]
},
(error, result) => {
if (!error && result && result.event === "sucess") {
console.log(result.info);
}
}
)
return newWidget
}
}```