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.

Minor fix - ElFinder Controller

KrzysztofPajak2b3d2cf3e6f0
diff --git a/src/Web/Grand.Web.Admin/Controllers/ElFinderController.cs b/src/Web/Grand.Web.Admin/Controllers/ElFinderController.cs
index 41a614b0c..8630b1c64 100644
--- a/src/Web/Grand.Web.Admin/Controllers/ElFinderController.cs
+++ b/src/Web/Grand.Web.Admin/Controllers/ElFinderController.cs
@@ -121,7 +121,7 @@ namespace Grand.Web.Admin.Controllers
if (string.IsNullOrEmpty(_mediaSettings.AllowedFileTypes))
allowedFileTypes = new List<string> { ".gif", ".jpg", ".jpeg", ".png", ".bmp", ".webp" };
else
- allowedFileTypes = _mediaSettings.AllowedFileTypes.Split(',').Select(x => x.ToLowerInvariant()).ToList();
+ allowedFileTypes = _mediaSettings.AllowedFileTypes.Split(',').Select(x => x.Trim().ToLowerInvariant()).ToList();
return allowedFileTypes.Contains(extensions.ToLowerInvariant());
}