The accept
parameter is ignored when dragging and dropping files.
#92
Labels
docs
Improvements or additions to documentation
Describe the bug
The
accept
parameter is ignored when dragging and dropping files. For example, when set toaccept="image/*"
, non-image file types cannot get uploaded from theUploadButton
but they are uploaded when dragging and dropping.To Reproduce
Steps to reproduce the behavior:
UploadButton
in the provided codesandbox and the native file browser will appear. For me, using Chrome 85 on Mac Mojave, all non-image file types appear greyed out and cannot be selected.UploadDropZone
(I used a .mov type)Expected behavior
Only file types that are listed in the
accept
parameter can be uploaded. In this case, a non-image would not trigger a network request, and there would be some kind of error response from Uploady.Versions
"@rpldy/upload-button": "0.7.0",
"@rpldy/upload-drop-zone": "0.7.0",
"@rpldy/uploady": "0.7.0"
Code
https://codesandbox.io/s/uploady-example-55600
The text was updated successfully, but these errors were encountered: