Starts in:
2 DAYS
5 HRS
19 MIN
39 SEC
Starts in:
2 D
5 H
19 M
39 S
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.


1 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team 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 =>
            {
                ....
            });
        });
    });
    
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06