Add support for JPEG XL mimetype
This commit is contained in:
parent
7b1cb88658
commit
dbf6ff064b
@ -222,6 +222,7 @@ function parse(msg, chan, preview, res, client) {
|
|||||||
case "image/gif":
|
case "image/gif":
|
||||||
case "image/jpg":
|
case "image/jpg":
|
||||||
case "image/jpeg":
|
case "image/jpeg":
|
||||||
|
case "image/jxl":
|
||||||
case "image/webp":
|
case "image/webp":
|
||||||
case "image/avif":
|
case "image/avif":
|
||||||
if (!Helper.config.prefetchStorage && Helper.config.disableMediaPreview) {
|
if (!Helper.config.prefetchStorage && Helper.config.disableMediaPreview) {
|
||||||
|
@ -28,6 +28,7 @@ const inlineContentDispositionTypes = {
|
|||||||
"image/png": "image.png",
|
"image/png": "image.png",
|
||||||
"image/webp": "image.webp",
|
"image/webp": "image.webp",
|
||||||
"image/avif": "image.avif",
|
"image/avif": "image.avif",
|
||||||
|
"image/jxl": "image.jxl",
|
||||||
"text/plain": "text.txt",
|
"text/plain": "text.txt",
|
||||||
"video/mp4": "video.mp4",
|
"video/mp4": "video.mp4",
|
||||||
"video/ogg": "video.ogv",
|
"video/ogg": "video.ogv",
|
||||||
|
Loading…
Reference in New Issue
Block a user