React-dropzone: iOS cannot support application/pdf and image/* MIME types even when specified

Created on 12 Jul 2018  路  4Comments  路  Source: react-dropzone/react-dropzone

Do you want to request a feature or report a bug?

  • [x] I found a bug
    What is the current behavior?
    PDFs are grayed out / not selectable on iPhone devices even though accept="application/pdf,image/*" is specified. Works fine on android, desktop safari/chrome.

To reproduce, set accept to accept='image/*,application/pdf'.

"application/pdf,audio/*" works fine, so does "application/pdf" alone. "application/pdf, image/png" for example breaks. This appears to be a combination of pdf and image.

What is the expected behavior?
PDF should be selectable

Could be the same issue as https://github.com/react-dropzone/react-dropzone/issues/538 (closed as not reproducible)

Most helpful comment

bump

All 4 comments

This issue has been automatically marked as stale because it has not had recent activity in the past 60 days. It will be closed if no further activity occurs. If the problem persists please comment here to bump your issue. Thank You - React Dropzone Maintaners

bump

@xuefanzhang I'm afraid that there is not much we can do on our side to fix this. As I explained in https://github.com/react-dropzone/react-dropzone/issues/653#issuecomment-429525418 and as @ilovett pointed out in his comment, this is a problem with inconsistent behaviour of file selection in mobile browsers as the accept property is proxied to the input directly.

I'm closing this, but feel free to reopen if you think you may have found a bug caused by this lib.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

imontiel picture imontiel  路  5Comments

ghost picture ghost  路  3Comments

CarlosUvaSilva picture CarlosUvaSilva  路  5Comments

0xdevalias picture 0xdevalias  路  4Comments

christiantigre picture christiantigre  路  4Comments