Skip to content

Commit ae078bf

Browse files
authored
Adds some missing mime types to ensure uploaded audio and video displays with preview. (#19039)
1 parent 76e2103 commit ae078bf

File tree

1 file changed

+3
-0
lines changed
  • src/Umbraco.Web.UI.Client/src/packages/media/media/components/input-upload-field

1 file changed

+3
-0
lines changed

src/Umbraco.Web.UI.Client/src/packages/media/media/components/input-upload-field/utils.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,7 @@ export function getMimeTypeFromExtension(extension: string): string | null {
461461
'.onetoc2': 'application/onenote',
462462
'.opf': 'application/oebps-package+xml',
463463
'.oprc': 'application/vnd.palm',
464+
'.opus': 'audio/ogg',
464465
'.org': 'application/vnd.lotus-organizer',
465466
'.osf': 'application/vnd.yamaha.openscoreformat',
466467
'.osfpvg': 'application/vnd.yamaha.openscoreformat.osfpvg+xml',
@@ -744,6 +745,8 @@ export function getMimeTypeFromExtension(extension: string): string | null {
744745
'.wbxml': 'application/vnd.wap.wbxml',
745746
'.wcm': 'application/vnd.ms-works',
746747
'.wdb': 'application/vnd.ms-works',
748+
'.weba': 'audio/webm',
749+
'.webm': 'video/webm',
747750
'.webp': 'image/webp',
748751
'.wiz': 'application/msword',
749752
'.wks': 'application/vnd.ms-works',

0 commit comments

Comments
 (0)