-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
directive stops working to select more files than allowed #1388
Comments
You have ngf-max-files = "2" so if you select 3 files they will be all invalid and will be in ngf-model-invalid. |
I will try to make only the extra files invalid in the next version. |
and how can I continue upload? |
If you set ngf-max-files = "2" and upload 3 files, uploader does not work. |
Ran into the same problem. Steps to recreate:
Looks like the
In conclusion, it appears that it would be best to exclude the maxLength invalids from the |
@ray-peters I don't see how the extra directive will be helpful here. |
Hey @danialfarid, thanks for the quick reply. What should be the expected behavior here? In my opinion, an upload canceled due to reaching the From my research, the invalid files are tracked in a way that
What do you think? |
Let's say max files is 10 and you selected 12 picture, the last two pictures will be invalid and have error and the form will have validation error max files. Since keep is set adding more files would add them to invalid model until you remove some of the files from the model. |
Both ways would work... however I think you might still run into the issues outlined above even if the new uploaded files are partitioned correctly. |
What issues? |
Guys, any fix on that .. this is not enhancement this is a bug because the control stops working totally if I selected more than the max file limit! It will not work until you refresh the page again! |
+1 |
1 similar comment
+1 |
Fixed at 12.0.3 |
ngf-max-files='2' ngf-multiple="true" ngf-keep="true".
jsfiddle example
this is a mistake, or i can change the behavior?
The text was updated successfully, but these errors were encountered: