Adds some missing mime types to ensure uploaded audio and video displays with preview. (#19039)

This commit is contained in:
Andy Butland
2025-04-15 08:03:10 +02:00
parent a9fc88d7e6
commit 432dda8c47

View File

@@ -461,6 +461,7 @@ export function getMimeTypeFromExtension(extension: string): string | null {
'.onetoc2': 'application/onenote',
'.opf': 'application/oebps-package+xml',
'.oprc': 'application/vnd.palm',
'.opus': 'audio/ogg',
'.org': 'application/vnd.lotus-organizer',
'.osf': 'application/vnd.yamaha.openscoreformat',
'.osfpvg': 'application/vnd.yamaha.openscoreformat.osfpvg+xml',
@@ -744,6 +745,8 @@ export function getMimeTypeFromExtension(extension: string): string | null {
'.wbxml': 'application/vnd.wap.wbxml',
'.wcm': 'application/vnd.ms-works',
'.wdb': 'application/vnd.ms-works',
'.weba': 'audio/webm',
'.webm': 'video/webm',
'.webp': 'image/webp',
'.wiz': 'application/msword',
'.wks': 'application/vnd.ms-works',