I have searched stackoverflow for this question but they all seem similar (not actually the same issue) while some have the exact opposite problem.
Here is my code:
Cloudinary.upload(file, {
folder: "images",
type: "private"
}, (err, res) => {
if(err) {
console.log("Upload Error: ", err);
alert("Sorry, there was an error uploading the image");
return;
}
if (res) {
console.log("Upload Result: ", res);
}
});
the above code works with safari and chrome but fails on firefox. Its driving me insane!
Firefox throws an error saying:
File.lastModifiedDate is deprecated. Use File.lastModified instead.
SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data[Learn More] lepozepo_cloudinary.js:224:20
Cloudinary._upload_file/</<
Not sure what the issue here is, Any help is apprecieated. Thanks.