dropzone icon indicating copy to clipboard operation
dropzone copied to clipboard

acceptedFiles doesn't work (validate) ignoring

Open fosterushka opened this issue 1 year ago • 0 comments

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

fosterushka avatar Jun 20 '23 08:06 fosterushka