Skip to content

Commit

Permalink
FIX - image validation - image/webp
Browse files Browse the repository at this point in the history
  • Loading branch information
bartko-s authored and f3l1x committed Oct 7, 2023
1 parent 193723f commit 57bdf48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion live-form-validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,7 @@
if (window.FileList && val instanceof window.FileList) {
for (var i = 0; i < val.length; i++) {
var type = val[i].type;
if (type && type !== 'image/gif' && type !== 'image/png' && type !== 'image/jpeg') {
if (type && type !== 'image/gif' && type !== 'image/png' && type !== 'image/jpeg' && type !== 'image/webp') {
return false;
}
}
Expand Down

0 comments on commit 57bdf48

Please sign in to comment.