question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

v3.21.1 breaks `accept` picker option for .zip files

See original GitHub issue

The 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):

zip

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ericm546commented, Mar 19, 2021

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”].

"File drop.avi is not an accepted file type. The accepted file types are .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.

if (!e.getters.customText)
    return !0;
1reaction
lukejprestoncommented, Mar 12, 2021

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)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found