Skip to main content

maxFilesCount

Uploaded files count should be less than defined value.

const validator = new JustValidate('#form');

validator.addField('#files', [
{
rule: 'maxFilesCount',
value: 2,
},
]);

Demo