Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

Media settings - set default allowed file types

KrzysztofPajak88442d8f448c
diff --git a/src/Business/Grand.Business.System/Services/Installation/InstallDataSettings.cs b/src/Business/Grand.Business.System/Services/Installation/InstallDataSettings.cs
index 738dcc700..fefda6188 100644
--- a/src/Business/Grand.Business.System/Services/Installation/InstallDataSettings.cs
+++ b/src/Business/Grand.Business.System/Services/Installation/InstallDataSettings.cs
@@ -95,12 +95,13 @@ namespace Grand.Business.System.Services.Installation
MaximumImageSize = 1980,
ImageQuality = 100,
DefaultPictureZoomEnabled = true,
+ AllowedFileTypes = ".gif, .jpg, .jpeg, .png, .bmp, .webp",
StoreLocation = "/",
});
await _settingService.SaveSetting(new StorageSettings {
PictureStoreInDb = true
- });
+ });
await _settingService.SaveSetting(new SeoSettings {
PageTitleSeparator = ". ",
@@ -341,7 +342,7 @@ namespace Grand.Business.System.Services.Installation
InstagramLink = "https://www.instagram.com/grandnode/",
LinkedInLink = "https://www.linkedin.com/company/grandnode.com/",
PinterestLink = "",
- VoiceNavigation = false,
+ VoiceNavigation = false,
});
await _settingService.SaveSetting(new LoyaltyPointsSettings {