filestack / filestack-js

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

Web search picker applies 'accept' restriction to img 'alt' attribute #163

Open asliwinski opened 6 years ago

asliwinski commented 6 years ago

filestack-js v. latest

When I try to pick an image from a web search result, what gets validated agains my accept array is the alt attribute of img element instead of src (filename), for example: screen shot 2018-10-11 at 2 43 07 pm

This does not occur in older versions (e.g. 0.11.4)

pcholuj commented 5 years ago

Hi currently we are using mimetype returned from api to validate accept attribute, alt attribute is only showing in error message. Example: https://jsfiddle.net/u037w48k/

emeryowa commented 5 years ago

This still occurs in the latest version. For a user there is no way to know which image type is accepted or not. It would be nice if the accept parameter is taken into account and the unaccepted images are either removed or grayed out

https://jsfiddle.net/6r9oLegn/ https://cl.ly/8c9b2f364a29