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
I changed the ngf-validate field to the following: {size: { max: '50MB' }, height: { min: 768 }, width: { min: 1500} } and set ngf-multiple to true.
If I chose all the correct pictures (that pass the validation), then everything worked fine
If I chose 2 correct pictures and 1 incorrect, then it only uploaded 1 correct picture and showed 1 picture with error, but 1 picture got lost in the process (not in $files or $invalidFiles). It should upload 2 correct pictures and show 1 with errors.
If I chose 2 correct pictures and 2 incorrect, then it did not upload any of the pictures and showed 2 pictrues with errors, meaning that 2 pictures got lost in the process (not in $files or $invalidFiles). It should upload 2 correct pictures and show 2 with errors.
To conclude, it uploads only n images that pass the validation, where n = validated images length - invalidated images length. But this kind of behaviour exists only if I use width and height rules together in ngf-validate and it disappears when I remove width or height rules from ngf-validate.
edit: there seems to be no issue, when using height.max and width.max together
The text was updated successfully, but these errors were encountered:
timomitt2610
changed the title
Image validation with height and width broken
Multiple image validation with height.min and width.min is broken
Sep 22, 2016
I used your demo site
I changed the ngf-validate field to the following: {size: { max: '50MB' }, height: { min: 768 }, width: { min: 1500} } and set ngf-multiple to true.
To conclude, it uploads only n images that pass the validation, where n = validated images length - invalidated images length. But this kind of behaviour exists only if I use width and height rules together in ngf-validate and it disappears when I remove width or height rules from ngf-validate.
edit: there seems to be no issue, when using height.max and width.max together
The text was updated successfully, but these errors were encountered: