Hi, I’m using this plugin: Image Compressor and Uploader Plugin | Bubble
It has worked flawlessly for over a year, but recently started getting this error when trying to compress from a URL:
Here’s a sample URL I’m attempting: https://frumpfighters.link/1614903019448x872611557039659100_out.png
This is the section of code that’s failing:
(function anonymous(b, d, k) {
function g(c, a) {
c.lastModifiedDate = new Date;
c.name = a;
return c
}
var e = !1
, f = function(c) {
fetch(c).then(function(a) {
return a.blob()
}).then(function(a) {
a.type.split("/");
a = g(a, d.name);
b.publishState("file_name", d.name);
b.publishState("size_before_compress", b.data.getSize(a.size));
b.data.compress(a, d);
b.data.compressedObj.name = d.name;
b.data.blobToBase64(a, function(h) {
b.publishState("uncompressed_base64", h)
})
})["catch"](function(a) {
e ? console.log("Something went wrong, error: ", a) : (e = !0,
f(b.data.corsAPI + c))
})
};
f(d.image_url)
//# sourceURL=PLUGIN_1597221235969x240651226286129150/Image-Compression-element_action--Compressor-Compress-from-URL-.js
}
)