I am not sure in 2.0 what is the right way to set max number of files that can be uploaded for the w2field 'file'
new w2field('file', { el: query('#file')[0], max: 1})
In 1.5 adding as option max:1 used to limit the number of files the field can hold to 1 and show a validation error if > 1
In 2.0 adding as option max:1 limits the number of files I can select but the field itself allows to add one by one unlimited number of files and there is no more validation. Am I passing the max option wrong, is it an error or by design ?
I am not sure in 2.0 what is the right way to set max number of files that can be uploaded for the w2field 'file'
new w2field('file', { el: query('#file')[0], max: 1})
In 1.5 adding as option max:1 used to limit the number of files the field can hold to 1 and show a validation error if > 1
In 2.0 adding as option max:1 limits the number of files I can select but the field itself allows to add one by one unlimited number of files and there is no more validation. Am I passing the max option wrong, is it an error or by design ?
https://jsfiddle.net/fe4obvp6/2/