When and How a file will be rejected and added to rejectedFiles? #1202
yelnyafacee
started this conversation in
General
Replies: 3 comments
-
anyone can clarify this? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I even added the accepted file type to only
but it does NOTHING, I can still upload images like and my code:
always returns:
NO MATTER what |
Beta Was this translation helpful? Give feedback.
0 replies
-
hi, here is my codesandbox link for dropzone: Anyone knows what is wrong with my code? Thanks in advance |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I am new to react-dropzone, I am currently using this
onDrop
code snippet from a tutorial:my question here is how a file will be added to the
rejectedFiles
array?this is my
JSX
:in the
getInputProps()
I stated this'accept': 'image/*'
, but when I uploaded aPDF
file I am not getting any errors, and thePDF
file is not added to therejectedFiles
array, so I am confused, what is the purpose ofrejectedFiles
?Beta Was this translation helpful? Give feedback.
All reactions