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
Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

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;
            });
        });
    });
    
    
    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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 :)

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 28, 2026, 11:44
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.