v3.21.1 breaks `accept` picker option for .zip files
See original GitHub issueThe latest release of the picker component (which doesn’t appear to be a part of this repository) breaks handling of .zip files when used in the accept
option. Rolling back to the prior release (v3.21.0) resolves the issue.
Reproducing the issue is simple - just pass .zip
as an accept
option to the picker and then try to upload a zip file. You will receive this validation error message (all client side):
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
filestack - Bountysource
Reproducing the issue is simple - just pass .zip as an accept option to the picker and then try to upload a zip...
Read more >InEight Platform Release Notes - the InEight Knowledge Library
Project equipment start and end date – The functionality for equipment assignments to a project has been updated to behave the same as...
Read more >Archived release notes - MetaDefender Core
MetaDefender Core now supports the archive compression for Proactive DLP use-case, along with already-supported Deep CDR so far. That means, MetaDefender Core ...
Read more >FintechOS Studio 21.1.3 User Guide.pdf
Debugging files from the editor. 464. Automation Scripts. 465. Event Triggered Automation Scripts. 466. On-demand automation scripts. 467. Setting the ...
Read more >Zip and unzip files - Microsoft Support
Zipped (compressed) files take up less storage space and can be transferred to other computers more quickly than uncompressed files. In Windows, you...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I was opening a new bug, but I think this it’s related to this bug:
Starting with Filestack-js 3.21.1, I have the following error when uploading an AVI file in a Filestack where the parameter accept is set to [“avi”].
The error only occur in Chrome. It works in Safari and Firefox. It also works if I rollback to the NPM version 3.21.0.
The error occur in the cdn file “/1.20.1/picker.js”. It looks like it’s trying to see if the file MimeType is part of “getters.acceptMime”.
That MimeType value is “video/avi” in Chrome and “video/x-msvideo” in Safari.
It works in Chrome in the cdn 1.20.0 version because the following code (removed in 1.20.1) prevent the ERROR_FILE_NOT_ACCEPTABLE from being displayed.
Thanks for the quick reply @pcholuj After seeing your jsfiddle I realised we were using an old version of the library. The latest version works fine (from v1 -> v3)