From e487d85f6b09949c523fb5865fc212d8886e5543 Mon Sep 17 00:00:00 2001 From: Mike Alhayek Date: Thu, 29 Dec 2022 10:34:37 -0800 Subject: [PATCH] Add .webp as a default image extension in MediaOptions (#13007) --- src/OrchardCore.Cms.Web/appsettings.json | 2 +- .../OrchardCore.Media/Services/MediaOptionsConfiguration.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/OrchardCore.Cms.Web/appsettings.json b/src/OrchardCore.Cms.Web/appsettings.json index b56253f4727..fa7791863d0 100644 --- a/src/OrchardCore.Cms.Web/appsettings.json +++ b/src/OrchardCore.Cms.Web/appsettings.json @@ -39,7 +39,7 @@ // "AssetsRequestPath": "/media", // "AssetsPath": "Media", // "UseTokenizedQueryString": true, - // "AllowedFileExtensions": [".jpg",".jpeg",".png",".gif",".ico",".svg",".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"], // "ContentSecurityPolicy": "default-src 'self'; style-src 'unsafe-inline'" //} // See https://docs.orchardcore.net/en/latest/docs/reference/modules/Media.AmazonS3/#configuration to configure media storage in Amazon S3 Storage. diff --git a/src/OrchardCore.Modules/OrchardCore.Media/Services/MediaOptionsConfiguration.cs b/src/OrchardCore.Modules/OrchardCore.Media/Services/MediaOptionsConfiguration.cs index 622b852e9d2..85a4e5af360 100644 --- a/src/OrchardCore.Modules/OrchardCore.Media/Services/MediaOptionsConfiguration.cs +++ b/src/OrchardCore.Modules/OrchardCore.Media/Services/MediaOptionsConfiguration.cs @@ -21,6 +21,7 @@ public class MediaOptionsConfiguration : IConfigureOptions ".gif", ".ico", ".svg", + ".webp", // Documents ".pdf", // (Portable Document Format; Adobe Acrobat)