dropzone icon indicating copy to clipboard operation
dropzone copied to clipboard

acceptedFiles ignored when uploading through mobile browser.

Open ZAfricanDev opened this issue 4 years ago • 6 comments

Describe the bug acceptedFiles being ignored when uploading through a mobile browser

To Reproduce Steps to reproduce the behavior:

  1. Set acceptedFiles to only allow audio types eg (.wav etc..)
  2. Through a mobile platform click the upload link
  3. This will allow you to upload directly from the camera or from files, dismissing file types. (allowing JPEG files which shouldn't be possible)
  4. See error

Expected behavior Only file types in the acceptedFiles should be uploadable.

Browser / OS:

  • OS & Device: Android 9
  • Browser: Chrome
  • Version: 88.0.4324

ZAfricanDev avatar Mar 10 '21 13:03 ZAfricanDev

I don't have an Android device, so I can't test this. If somebody figures out a way to fix it, I'll be happy to merge it.

enyo avatar Mar 10 '21 14:03 enyo

From what I know, it is also reproducible on iPhone through the mobile browser.

ZAfricanDev avatar Mar 11 '21 09:03 ZAfricanDev

@enyo just bumping for visibility.

ZAfricanDev avatar Apr 07 '21 12:04 ZAfricanDev

@enyo I have the same problem. I have two dropzone fields:

  • one for the pdf extensions,
  • the second for the dxf extensions

I can choose a file for the field with pdf extensions, but for the field with dxf.

I see the file, but the file is gray and I can't upload it.

Requirements:

  • IOS version: 14.7.1
  • Browser: Safari, Chrome.

P.S. on the desktop all looks pretty good.

wppunk avatar Sep 10 '21 22:09 wppunk

@enyo Bumping again

ZAfricanDev avatar May 19 '22 09:05 ZAfricanDev

bump

mansurmetocrm avatar Jun 20 '23 08:06 mansurmetocrm