✨ More mimetype overrides on uploading
This commit is contained in:
parent
0b0c069907
commit
010f8a065b
@ -149,6 +149,9 @@ async function createMultipartPlaceholder() {
|
|||||||
const mimetypeMap: { [id: string]: string } = {
|
const mimetypeMap: { [id: string]: string } = {
|
||||||
"mp4": "video/mp4",
|
"mp4": "video/mp4",
|
||||||
"mov": "video/quicktime",
|
"mov": "video/quicktime",
|
||||||
|
"mp3": "audio/mp3",
|
||||||
|
"wav": "audio/wav",
|
||||||
|
"m4a": "audio/m4a",
|
||||||
}
|
}
|
||||||
const mimetype = mimetypeMap[content.value.name.split(".").pop() as string]
|
const mimetype = mimetypeMap[content.value.name.split(".").pop() as string]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user