From ae078bf96b080dcb892691969fd08f5d48d8953f Mon Sep 17 00:00:00 2001 From: Andy Butland Date: Tue, 15 Apr 2025 08:03:10 +0200 Subject: [PATCH] Adds some missing mime types to ensure uploaded audio and video displays with preview. (#19039) --- .../media/media/components/input-upload-field/utils.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Umbraco.Web.UI.Client/src/packages/media/media/components/input-upload-field/utils.ts b/src/Umbraco.Web.UI.Client/src/packages/media/media/components/input-upload-field/utils.ts index 8f65e11141..c566013167 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/media/media/components/input-upload-field/utils.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/media/media/components/input-upload-field/utils.ts @@ -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',