Open Closed

How to configure file management provider for CmsKit ( blog images file ) ? #1231


User avatar
0
serdar.genc@talentra.net created

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)
  • User Avatar
    0
    cotur created

    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;
            });
        });
    });
    
    
  • User Avatar
    0
    serdar.genc@talentra.net created

    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 :)

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11