react-dropzone onDrop is not triggered programmatically when using unaccepted file type
I’m using react-dropzone in my React project, and I have it set up to only accept .stl and .zip files. Currently I’m testing other file types to ensure that an error is shown when the user uploads an unaccepted file. When I upload a pdf file manually, the onDrop function is triggered, sets the error message, and returns which is the correct behavior. Here is my onDrop
function
react-dropzone onDrop is not triggered programmatically
I’m using react-dropzone in my React project, and I have it set up to only accept .stl and .zip files. Currently I’m testing other file types to ensure that an error is shown when the user uploads a non-accepted file. When I upload a pdf file manually, the onDrop function is triggered, sets the error message, and returns which is the correct behaviour. Here is my onDrop
function
react-dropzone does not trigger
I’m using react-dropzone in my React project, and I have it set up to only accept .stl and .zip files. Currently I’m testing other file types to ensure that an error is shown when the user uploads a non-accepted file. When I upload a pdf file manually, the onDrop function is triggered, sets the error message, and returns which is the correct behaviour. Here is my onDrop
function