Skip to content

Commit

Permalink
support .webm filetype in media extensions (#16901)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: Mike Alhayek <mike@crestapps.com>
  • Loading branch information
giannik and MikeAlhayek authored Oct 17, 2024
1 parent 50e9bba commit a7620c6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/OrchardCore.Cms.Web/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public sealed class MediaOptionsConfiguration : IConfigureOptions<MediaOptions>
".mpg",
".ogv", // (Ogg)
".3gp", // (3GPP)
".webm",
];

private const int DefaultMaxBrowserCacheDays = 30;
Expand Down
1 change: 1 addition & 0 deletions src/docs/reference/modules/Media/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a7620c6

Please sign in to comment.