More mimetype overrides on uploading

This commit is contained in:
LittleSheep 2024-09-10 22:33:10 +08:00
parent 0b0c069907
commit 010f8a065b

View File

@ -149,6 +149,9 @@ async function createMultipartPlaceholder() {
const mimetypeMap: { [id: string]: string } = {
"mp4": "video/mp4",
"mov": "video/quicktime",
"mp3": "audio/mp3",
"wav": "audio/wav",
"m4a": "audio/m4a",
}
const mimetype = mimetypeMap[content.value.name.split(".").pop() as string]