Skip to content

Commit b798925

Browse files
authored
Adds webp to mime type map to support preview on upload file property editor. (#18863)
1 parent b1dbd80 commit b798925

File tree

1 file changed

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

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -744,6 +744,7 @@ export function getMimeTypeFromExtension(extension: string): string | null {
744744
'.wbxml': 'application/vnd.wap.wbxml',
745745
'.wcm': 'application/vnd.ms-works',
746746
'.wdb': 'application/vnd.ms-works',
747+
'.webp': 'image/webp',
747748
'.wiz': 'application/msword',
748749
'.wks': 'application/vnd.ms-works',
749750
'.wm': 'video/x-ms-wm',

0 commit comments

Comments
 (0)