Open Closed

AWS S3 bucket support for image storage #6333


User avatar
0
shobhit created
  • ABP Framework version: v4.2.2
  • UI Type: Angular
  • Database System: EF Core (SQL Server, Oracle, MySQL, PostgreSQL, etc..)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

Hi Team, As per my understanding ABP bydefault support Azure Container for blob storage. My question is, if it is possible to have S3 bucket support for a particular tenant while host and other tenants can keep using Azure container? If yes, how i can achieve it. Please share sample.

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

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

    Hi,

    You can configure different storage for different containers. for example:

    
    [BlobContainerName("host-profile-pictures")]
    public class HostPictureContainer
    {
        
    }
        
    [BlobContainerName("tenant-profile-pictures")]
    public class TenantPictureContainer
    {
        
    }
    
    Configure<AbpBlobStoringOptions>(options =>
    {
        options.Containers.Configure<HostPictureContainer>(container =>
        {
            container.IsMultiTenant = false;
            container.UseAws(aws =>
            {
                ....
            });
        });
        
        options.Containers.Configure<TenantPictureContainer>(container =>
        {
            container.UseAzure(azure =>
            {
                ....
            });
        });
    });
    
    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.