You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When clicking the dropzone to open the file explorer to select a file, the files are already filtered to only show the files with the provided file endings. (Tested on windows)
When dropping an unsupported or supported file ending the file is accepted or rejected as expected.
What doesn't work:
When hovering a file over the dropzone it always shows the "wrong file type" hover state (red), even if the file is accepted when dropped.
The text was updated successfully, but these errors were encountered:
Hi,
This doesn't seem to be work on the last version 3.2.1. When I hover the dropzone I still always shows the rejected red state if I use file extensions, but reading the react-dropzone documentation it won't be working anyway no ?
input type=file
also supports setting theacceptedFiles
as file endings. (e.g[".jpg", ".png"]
), see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#Unique_file_type_specifiersThis is useful for custom file types whose mime type is not known by the browser.
What already works:
What doesn't work:
The text was updated successfully, but these errors were encountered: