i want to save blog image on azure storage. How can i handle this ?
- ABP Framework version: v4.3.0
- UI type: MVC
- DB provider: EF Core
- Tiered (MVC) or Identity Server Separated (Angular): no
2 Answer(s)
-
0
Hi @serdar.genc
CmsKit images are stored via ABP Blob Storing infrastructure, so you can easily change your blob storing provider.
All CmsKit related BLOBs are using
MediaContainer
(namespace:Volo.CmsKit.MediaDescriptors
).Firstly you should add Blob Storing Azure Provider module to your application, here is the documentation.
Then configure
MediaContainer
to use Azure Provider.Configure<AbpBlobStoringOptions>(options => { options.Containers.Configure<MediaContainer>(container => { container.UseAzure(azure => { azure.ConnectionString = "your azure connection string"; azure.ContainerName = "your azure container name"; azure.CreateContainerIfNotExists = true; }); }); });
-
0
Hi @serdar.genc
CmsKit images are stored via ABP Blob Storing infrastructure, so you can easily change your blob storing provider.
All CmsKit related BLOBs are using
MediaContainer
(namespace:Volo.CmsKit.MediaDescriptors
).Firstly you should add Blob Storing Azure Provider module to your application, here is the documentation.
Then configure
MediaContainer
to use Azure Provider.Configure<AbpBlobStoringOptions>(options => { options.Containers.Configure<MediaContainer>(container => { container.UseAzure(azure => { azure.ConnectionString = "your azure connection string"; azure.ContainerName = "your azure container name"; azure.CreateContainerIfNotExists = true; }); }); });
thanks @cotur. i love this framework :)