jquery-validation / jquery-validation

jQuery Validation Plugin library sources

Home Page:https://jqueryvalidation.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Extension validation for multiple file uploads not evaluating correctly.

falcon397 opened this issue · comments

Subject of the issue

The extension validation for file upload doesn't validate more than 1 file. I attached a jsfiddle below that is primed to show the issue. If you attach 2 files to the upload control, one valid and one invalid, you'll see the validation doesn't trigger. If you then attach only one invalid file the validation works.

Your environment

Using CDN of 1.19.3 of jquery.validate.min.js and additional-methods.min.js

Steps to reproduce

Select 2 files in the file input control, one valid extension and one invalid, then submit the form. Then load up the control with 1 valid file and submit the form.
https://jsfiddle.net/tp03o16u/

Expected behavior

Each file should be evaluated separately and there should be a response for the entire group of files in the input control.

Actual behavior

The first file is validated and I believe it stops there and doesn't validate any further.

This issue/proposal has been automatically marked as idle and stale because it hasn't had any recent activity. It will be automatically closed if no further activity occurs. If you think this is wrong, or the problem still persists, just pop a reply in the comments and one of the maintainers will (try!) to follow up.
Thank you for contributing :)