Skip to content

Commit 66526a8

Browse files
authored
Fix extToMime function (#9084)
1 parent 8cded43 commit 66526a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/media/video/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export function mimeToExt(mimeType: SupportedMimeTypes | (string & {})) {
4040
}
4141

4242
export function extToMime(ext: string) {
43-
switch (ext) {
43+
switch (ext.toLowerCase()) {
4444
case 'mp4':
4545
return 'video/mp4'
4646
case 'webm':

0 commit comments

Comments
 (0)