BEST
DEALS
OF THE
YEAR!
SAVE UP TO $3,000
24 NOV
1 DEC
00 Days
00 Hrs
00 Min
00 Sec
Open Closed

How can I use two Blob databases? #8106


User avatar
0
yunusemrecaglar created
  • ABP Framework version: v7.2.2
  • UI Type: Blazor Server
  • Database System: EF Core (SQL Server, Oracle, MySQL, PostgreSQL, etc..)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes

I want to use two blobs within the project. One should connect directly to the database, and the other should be set up as a file system. How can I do this?


1 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Hi,

    you can do it by configuring File Container

    https://abp.io/docs/latest/framework/infrastructure/blob-storing

    Configure<AbpBlobStoringOptions>(options =>
    {
        options.Containers.Configure<UseFileProviderContainer>(container =>
        {
            container.UseFileSystem(fileSystem =>
            {
                fileSystem.BasePath = "C:\\my-files";
            });
        });
        
        options.Containers.Configure<UseDbProviderContainer>(container =>
        {
            container.UseDatabase();
        });
    });
    
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.1.0-preview. Updated on November 20, 2025, 09:12
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.