Support BMP format uploads

This commit is contained in:
Ruin0x11
2021-05-09 01:29:36 -07:00
parent ca77149597
commit a2b68925ac
7 changed files with 20 additions and 0 deletions

View File

@ -15,6 +15,7 @@ function _mimeTypeToPostType(mimeType) {
"image/jpeg": "image",
"image/png": "image",
"image/webp": "image",
"image/bmp": "image",
"video/mp4": "video",
"video/webm": "video",
}[mimeType] || "unknown"
@ -109,6 +110,7 @@ class Url extends Uploadable {
png: "image/png",
gif: "image/gif",
webp: "image/webp",
bmp: "image/bmp",
mp4: "video/mp4",
webm: "video/webm",
};