committed by
Eric Bailey
parent
70ec4767a5
commit
b40e5ec815
@@ -40,7 +40,7 @@ export function mimeToExt(mimeType: SupportedMimeTypes | (string & {})) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function extToMime(ext: string) {
|
export function extToMime(ext: string) {
|
||||||
switch (ext) {
|
switch (ext.toLowerCase()) {
|
||||||
case 'mp4':
|
case 'mp4':
|
||||||
return 'video/mp4'
|
return 'video/mp4'
|
||||||
case 'webm':
|
case 'webm':
|
||||||
|
|||||||
Reference in New Issue
Block a user