Open owagner24 opened 3 years ago
I have a setup which allows the upload for images and I have enabled image resizing by defining a imageDim in the picker options:
imageDim
const apikey = "YOUR_APIKEY"; const client = filestack.init(apikey); client .picker({ accept: [ "image/*", ], imageDim: [180, 180], onUploadDone: (files) => { console.log("files", files); }, }) .open(); });
I can upload a SVG without problems.
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
I have a setup which allows the upload for images and I have enabled image resizing by defining a
imageDim
in the picker options: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:
Possible Solution
Steps to Reproduce (for bugs)
Additional Screenshots
Context
Your Environment