Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

acceptedFiles doesn't work (validate) ignoring #2239

Open
fosterushka opened this issue Jun 20, 2023 · 0 comments
Open

acceptedFiles doesn't work (validate) ignoring #2239

fosterushka opened this issue Jun 20, 2023 · 0 comments

Comments

@fosterushka
Copy link

fosterushka commented Jun 20, 2023

The configuration for the Dropzone component is as follows, with some improvements:

Dropzone.options.imageDropzone = {
  url: '{{ some url) }}',
  maxFilesize: 8, // MB
  acceptedFiles: 'image/*,application/pdf', // ✅ I have also tried .jpeg, .jpg, .png, .gif
};

Expected behavior 😊
In the native file upload window, files that are not described in acceptedFiles should not be selectable for uploading, just like in the native window. For example:

<input type="file" id="avatar" name="avatar" accept="image/png, image/jpeg">

Configuration details:

  • 📱 iOS 16
  • 💻 macOS Ventura 13.4
  • 🌐 Version 114.0.5735.133 (Official Build) (arm64) | Firefox 114.0.1 (64-bit)
  • 📦 Dropzone version 5.5.1 and 5.9.3 (i have tested a lot of version doesn't work acceptedFiles

WhatsApp Image 2023-06-20 at 11 29 11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant