diff --git a/src/OrchardCore.Cms.Web/appsettings.json b/src/OrchardCore.Cms.Web/appsettings.json index 4dbff971208..615bebfa5ea 100644 --- a/src/OrchardCore.Cms.Web/appsettings.json +++ b/src/OrchardCore.Cms.Web/appsettings.json @@ -55,7 +55,7 @@ // "AssetsRequestPath": "/media", // "AssetsPath": "Media", // "UseTokenizedQueryString": true, - // "AllowedFileExtensions": [".jpg",".jpeg",".png",".gif",".ico",".svg",".webp",".pdf",".doc",".docx",".ppt",".pptx",".pps",".ppsx",".odt",".xls",".xlsx",".psd",".mp3",".m4a",".ogg",".wav",".mp4",".m4v",".mov",".wmv",".avi",".mpg",".ogv",".3gp"], + // "AllowedFileExtensions": [".jpg",".jpeg",".png",".gif",".ico",".svg",".webp",".pdf",".doc",".docx",".ppt",".pptx",".pps",".ppsx",".odt",".xls",".xlsx",".psd",".mp3",".m4a",".ogg",".wav",".mp4",".m4v",".mov",".wmv",".avi",".mpg",".ogv",".3gp",".webm"], // "ContentSecurityPolicy": "default-src 'self'; style-src 'unsafe-inline'", // "MaxUploadChunkSize": 104857600, // "TemporaryFileLifetime": "01:00:00" diff --git a/src/OrchardCore.Modules/OrchardCore.Media/Services/MediaOptionsConfiguration.cs b/src/OrchardCore.Modules/OrchardCore.Media/Services/MediaOptionsConfiguration.cs index 1ad788d0a90..b7a415705e6 100644 --- a/src/OrchardCore.Modules/OrchardCore.Media/Services/MediaOptionsConfiguration.cs +++ b/src/OrchardCore.Modules/OrchardCore.Media/Services/MediaOptionsConfiguration.cs @@ -47,6 +47,7 @@ public sealed class MediaOptionsConfiguration : IConfigureOptions ".mpg", ".ogv", // (Ogg) ".3gp", // (3GPP) + ".webm", ]; private const int DefaultMaxBrowserCacheDays = 30; diff --git a/src/docs/reference/modules/Media/README.md b/src/docs/reference/modules/Media/README.md index 9f02b784a7f..9de85d438e0 100644 --- a/src/docs/reference/modules/Media/README.md +++ b/src/docs/reference/modules/Media/README.md @@ -356,6 +356,7 @@ The following configuration values are used by default and can be customized: ".mpg", ".ogv", // Ogg ".3gp", // 3GPP + ".webm", ], // The Content Security Policy to apply to assets served from the media library.