-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when i use displayExistingFile function maxFiles does not seem to work #2031
Comments
I can confirm that maxFiles is ignored when I add already uploaded files. |
Please merge it, I tested and it works. |
I found a minor problem. When displayExistingFile() receive more than maxFiles it will add all of them except cut it to maxFiles count. More files that maxFiles should be ignored or if some parameter will be true then removed/deleted. |
Problem still alive or exists some workaround? I am dealing with the same thing in #2230 |
Describe the bug
when i use displayExistingFile to init the Dropzone widget with files already uploaded it does not seem to handle the maxFiles setting correctly.
To Reproduce
Expected behavior
Browser / OS:
Screenshots
scenario one; having 8 images loaded via displayExistingFile and uploading 4 (expect 2 to be rejected)
![Schermafbeelding 2021-09-09 om 20 12 39](https://user-images.githubusercontent.com/6532583/132740324-5b737241-27d6-41ae-98ff-2559a02787ad.png)
![Schermafbeelding 2021-09-09 om 20 13 03](https://user-images.githubusercontent.com/6532583/132740333-1319a9f7-be28-4279-bf48-73e4b45789ea.png)
scenario two; having 0 images loaded via displayExistingFile and uploading 12 (2 are rejected )
Additional context
produced json response by
/some/endpoint/producing/json/list/with/8/items
uriThe text was updated successfully, but these errors were encountered: