From 1e75f7462d70c74b3a3e69a4ea5dfd1816b1f983 Mon Sep 17 00:00:00 2001 From: Tobias Dillig Date: Sat, 27 Jun 2026 15:17:39 +0200 Subject: [PATCH] feat: add 'image/webp' to allowed upload MIME types Signed-off-by: Tobias Dillig --- lib/config/index.js | 3 ++- public/docs/release-notes.md | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/config/index.js b/lib/config/index.js index 09a14f0d..b4de9ca6 100644 --- a/lib/config/index.js +++ b/lib/config/index.js @@ -193,7 +193,8 @@ switch (config.imageUploadType) { 'image/jpeg', 'image/png', 'image/gif', - 'image/svg+xml' + 'image/svg+xml', + 'image/webp' ] } diff --git a/public/docs/release-notes.md b/public/docs/release-notes.md index 6daa3ad9..972f47c4 100644 --- a/public/docs/release-notes.md +++ b/public/docs/release-notes.md @@ -5,6 +5,7 @@ ### Enhancements - Added external link whitelist setting (`externalLinkWhitelist` in config.json or `CMD_EXTERNAL_LINK_WHITELIST`) to skip warning page for certain domains +- Enabled `.webp` for file uploads (for all backends but `imgur`, since it does not support it) ## 1.11.0 2026-06-18