Skip to content

Commit 57bdf48

Browse files
bartko-sf3l1x
authored andcommitted
FIX - image validation - image/webp
1 parent 193723f commit 57bdf48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

live-form-validation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1052,7 +1052,7 @@
10521052
if (window.FileList && val instanceof window.FileList) {
10531053
for (var i = 0; i < val.length; i++) {
10541054
var type = val[i].type;
1055-
if (type && type !== 'image/gif' && type !== 'image/png' && type !== 'image/jpeg') {
1055+
if (type && type !== 'image/gif' && type !== 'image/png' && type !== 'image/jpeg' && type !== 'image/webp') {
10561056
return false;
10571057
}
10581058
}

0 commit comments

Comments
 (0)