filestack / filestack-js

Official Javascript SDK for the Filestack API and content ingestion system.
https://www.filestack.com
MIT License
206 stars 77 forks source link

Uploading an image via data URI in the URL source in the file picker does not work #407

Closed Cadigal-displayr closed 3 years ago

Cadigal-displayr commented 3 years ago

Trying to upload an image via the url source in the picker results in a 'Error fetching URL metadata' error banner in version 3.15.0 and an empty error banner in version 3.20.0. Supporting images from data-uris might be hard to implement but I think that having an error message explaining that they aren't supported would be good.

The data URI I used to test this: ``` data:image/gif;base64,R0lGODlhEAAQAMQAAORHHOVSKudfOulrSOp3WOyDZu6QdvCchPGolfO0o/XBs/fNwfjZ0frl3/zy7////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAkAABAALAAAAAAQABAAAAVVICSOZGlCQAosJ6mu7fiyZeKqNKToQGDsM8hBADgUXoGAiqhSvp5QAnQKGIgUhwFUYLCVDFCrKUE1lBavAViFIDlTImbKC5Gm2hB0SlBCBMQiB0UjIQA7 ```

Version 3.15.0

image

Version 3.20.0

image

maryfs commented 3 years ago

Hi @Cadigal-displayr , we do not support data-uris , but error message will fixed.

pcholuj commented 3 years ago

Error should be displayed correctly now. Closing