filestack-js
filestack-js copied to clipboard
Upload SVG creating a endless spinner when resizing is enabled
I have a setup which allows the upload for images and I have enabled image resizing by defining a imageDim in the picker options:
const apikey = "YOUR_APIKEY";
const client = filestack.init(apikey);
client
.picker({
accept: [
"image/*",
],
imageDim: [180, 180],
onUploadDone: (files) => {
console.log("files", files);
},
})
.open();
});
Expected Behavior
I can upload a SVG without problems.
Current Behavior
When upload a SVG a endless spinner occurs and there is a JavaScript error in the console:
picker.js:1 Uncaught (in promise) TypeError: Failed to execute 'createObjectURL' on 'URL': Overload resolution failed.
at picker.js:1
Possible Solution
Steps to Reproduce (for bugs)
- Open the fiddle https://jsfiddle.net/mvw70beu/2/
- Upload a SVG file
Additional Screenshots
Context
Your Environment
- Version used: 3.x.x
- Browser Name and version: Chrome 90.0.4430.212 (Offizieller Build) (x86_64)
- Operating System and version (desktop or mobile): Mac OSX 11.3
- Link to your project:
