Skip to content

Commit

Permalink
Add .webp as a default image extension in MediaOptions (#13007)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeAlhayek authored Dec 29, 2022
1 parent 7c2f230 commit e487d85
Show file tree
Hide file tree
Showing 2 changed files with 2 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 @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public class MediaOptionsConfiguration : IConfigureOptions<MediaOptions>
".gif",
".ico",
".svg",
".webp",

// Documents
".pdf", // (Portable Document Format; Adobe Acrobat)
Expand Down

0 comments on commit e487d85

Please sign in to comment.