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
Describe the bug
I'm trying to implement a basic validation rule by checking that there are no errored files in the queue before I allow it to be processed. The problem is that the first file that is added to the queue is always placed in the "Rejected Files" object so when checking for errored files by using getRejectedFiles() it returns a valid file.
I can remove this file to clear the Rejected Files object, but adding another file goes to the Rejected object again.
This file does get processed and moved to the accepted list when the processQueue() method is called.
To Reproduce
Steps to reproduce the behavior:
Check the following pen: https://codepen.io/butcherman/pen/BaqGgeY?editors=1111
Drag one or more files in the drop box. There is guaranteed to be one file in the Rejected Files portion. Remove files to clear it, and add another file, Rejected Files will be populated again.
Expected behavior
An accepted file should not be in the Rejected Files list
Browser / OS:
Tested in Chrome, Firefox, and Edge
Dropzone v5.9.3
The text was updated successfully, but these errors were encountered:
Describe the bug
I'm trying to implement a basic validation rule by checking that there are no errored files in the queue before I allow it to be processed. The problem is that the first file that is added to the queue is always placed in the "Rejected Files" object so when checking for errored files by using getRejectedFiles() it returns a valid file.
I can remove this file to clear the Rejected Files object, but adding another file goes to the Rejected object again.
This file does get processed and moved to the accepted list when the processQueue() method is called.
To Reproduce
Steps to reproduce the behavior:
Check the following pen: https://codepen.io/butcherman/pen/BaqGgeY?editors=1111
Drag one or more files in the drop box. There is guaranteed to be one file in the Rejected Files portion. Remove files to clear it, and add another file, Rejected Files will be populated again.
Expected behavior
An accepted file should not be in the Rejected Files list
Browser / OS:
The text was updated successfully, but these errors were encountered: