upload: Serve more cross-browser audio and image formats as inline.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2024-06-18 14:41:51 -07:00 committed by Tim Abbott
parent fb4ad1422e
commit 5f053c4aa7
1 changed files with 8 additions and 0 deletions

View File

@ -26,6 +26,14 @@ MAX_EMOJI_GIF_FILE_SIZE_BYTES = 128 * 1024 * 1024 # 128 kb
INLINE_MIME_TYPES = [
"application/pdf",
"audio/aac",
"audio/flac",
"audio/mp4",
"audio/mpeg",
"audio/wav",
"audio/webm",
"image/apng",
"image/avif",
"image/gif",
"image/jpeg",
"image/png",