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.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
Azure blob thumbnail (#243)
Nikhil Scaria205cbffcb7b4
diff --git a/src/Business/Grand.Business.Storage/Services/AzurePictureService.cs b/src/Business/Grand.Business.Storage/Services/AzurePictureService.csindex d9aa91e12..ec6bbd8fe 100644--- a/src/Business/Grand.Business.Storage/Services/AzurePictureService.cs+++ b/src/Business/Grand.Business.Storage/Services/AzurePictureService.cs@@ -81,7 +81,10 @@ namespace Grand.Business.Storage.Services/// <returns>Local picture thumb path</returns>protected override async Task<string> GetThumbPhysicalPath(string thumbFileName){- return await Task.FromResult($"{_config.AzureBlobStorageEndPoint}{_config.AzureBlobStorageContainerName}/{thumbFileName}");+ var thumbFilePath = $"{_config.AzureBlobStorageEndPoint}{_config.AzureBlobStorageContainerName}/{thumbFileName}";+ var blobClient = container.GetBlobClient(thumbFileName);+ bool exists = await blobClient.ExistsAsync();+ return exists? thumbFilePath : string.Empty;}/// <summary>