Add AVIF/HEIF/HEIC upload support

This commit is contained in:
Ruin0x11
2021-05-07 21:20:42 -07:00
parent 169593ea36
commit 7e27df835c
10 changed files with 127 additions and 4 deletions

View File

@ -16,6 +16,7 @@ function _mimeTypeToPostType(mimeType) {
"image/png": "image",
"image/webp": "image",
"image/avif": "image",
"image/heif": "image",
"image/heic": "image",
"video/mp4": "video",
"video/webm": "video",
@ -112,6 +113,7 @@ class Url extends Uploadable {
gif: "image/gif",
webp: "image/webp",
avif: "image/avif",
heif: "image/heif",
heic: "image/heic",
mp4: "video/mp4",
webm: "video/webm",