diff --git a/src/js/bindings/fileupload.js b/src/js/bindings/fileupload.js index d40ff06dc..5408bcd0d 100644 --- a/src/js/bindings/fileupload.js +++ b/src/js/bindings/fileupload.js @@ -101,7 +101,7 @@ ko.bindingHandlers['fileupload'] = { dataType: 'json', dropZone: $parent.find('.mo-uploadzone')[0], autoUpload: true, - acceptFileTypes: /(\.|\/)(gif|jpe?g|png)$/i, + acceptFileTypes: /(\.|\/)(gif|jpe?g|png|webp)$/i, maxFileSize: 1024 * 1024, // 2022-11-04 we used to disable image resizing for Android and Opera // but newer versions seems to deal with resizing correclty @@ -262,4 +262,4 @@ ko.bindingHandlers['fileupload'] = { $fu.prop('disabled', true).parent().addClass('disabled'); } } -}; \ No newline at end of file +};