From: Tim Düsterhus Date: Fri, 26 Feb 2021 11:05:12 +0000 (+0100) Subject: Merge branch '5.3' X-Git-Tag: 5.4.0_Alpha_1~221 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=511105d925e81a0cc23bdf00f6fd10168882b653;p=GitHub%2FWoltLab%2FWCF.git Merge branch '5.3' --- 511105d925e81a0cc23bdf00f6fd10168882b653 diff --cc wcfsetup/install/files/js/WCF.Attachment.js index 4ced08677c,34ff910301..a00269e6b4 --- a/wcfsetup/install/files/js/WCF.Attachment.js +++ b/wcfsetup/install/files/js/WCF.Attachment.js @@@ -335,8 -335,9 +335,9 @@@ WCF.Attachment.Upload = WCF.Upload.exte // As our resizer is based on Pica it will use multiple workers per image if possible. promise = Array.prototype.reduce.call(files, (function (acc, file) { return acc.then((function (arr) { - // Ignore anything that is not one of the 4 basic image types. - if (['image/png', 'image/gif', 'image/jpeg', 'image/webp'].indexOf(file.type) === -1) { - // Ignore anything that is neither PNG nor JPEG. GIFs are not supported - // due to the support for animations. - if (['image/png', 'image/jpeg'].indexOf(file.type) === -1) { ++ // Ignore anything that is not a widely used mimetype for static images. ++ // GIFs are not supported due to the support for animations. ++ if (['image/png', 'image/jpeg', 'image/webp'].indexOf(file.type) === -1) { arr.push(file); return arr; }