diff --git a/docs/en/solution-templates/layered-web-application/blob-storing.md b/docs/en/solution-templates/layered-web-application/blob-storing.md index f5d88040800..74d269e481e 100644 --- a/docs/en/solution-templates/layered-web-application/blob-storing.md +++ b/docs/en/solution-templates/layered-web-application/blob-storing.md @@ -27,6 +27,12 @@ This document explains how to store BLOBs (Binary Large Objects) in a layered so In the layered solution template, the [Database Provider](../../framework/infrastructure/blob-storing/database.md) is used to store BLOBs in the database. The `Volo.Abp.BlobStoring.Database.EntityFrameworkCore` or `Volo.Abp.BlobStoring.Database.MongoDB` package provides the necessary implementations to store and retrieve BLOBs in the database. This setup is integrated into the layered solution template and is used in all related projects. You can change the database configuration in the `appsettings.json` file of the related project. +## Provider Selection + +The Database Provider is selected by default. In ABP Studio, use the BLOB Storing step to keep database storage, configure the [File System Provider](../../framework/infrastructure/blob-storing/file-system.md), or choose manual configuration for another provider. In the CLI, pass `--blob-storage database`, `--blob-storage file-system`, or `--blob-storage manual`. When using file-system storage, pass `--blob-storage-path ` to set the base path; otherwise, `./BlobStoring` is used. + +If you choose manual configuration, configure your preferred provider before using BLOB storage. See the [BLOB Storing provider documentation](../../framework/infrastructure/blob-storing/index.md) for the available providers and their setup requirements. + You can use the `IBlobContainer` or `IBlobContainer` service to store and retrieve BLOBs. Here is an example of storing a BLOB: ```csharp diff --git a/docs/en/solution-templates/microservice/blob-storing.md b/docs/en/solution-templates/microservice/blob-storing.md index 0e85367f9b0..9eb64c6e0ba 100644 --- a/docs/en/solution-templates/microservice/blob-storing.md +++ b/docs/en/solution-templates/microservice/blob-storing.md @@ -27,6 +27,12 @@ In the microservice solution template, the [Database Provider](../../framework/i "AbpBlobStoring": "Server=localhost,1434; User Id=sa; Password=myPassw@rd; Database=MyProjectName_BlobStoring; TrustServerCertificate=true" ``` +## Provider Selection + +The Database Provider is selected by default. In ABP Studio, use the BLOB Storing step to keep database storage, configure the [File System Provider](../../framework/infrastructure/blob-storing/file-system.md), or choose manual configuration for another provider. In the CLI, pass `--blob-storage database`, `--blob-storage file-system`, or `--blob-storage manual`. When using file-system storage, pass `--blob-storage-path ` to set the base path; otherwise, `./BlobStoring` is used. + +If you choose manual configuration, configure your preferred provider before using BLOB storage. See the [BLOB Storing provider documentation](../../framework/infrastructure/blob-storing/index.md) for the available providers and their setup requirements. + Afterwards, you can use the `IBlobContainer` or `IBlobContainer` service to store and retrieve BLOBs. Here is an example of storing a BLOB: ```csharp @@ -53,4 +59,4 @@ public class MyService : ITransientDependency The *File Management* module is optional and can be added to the solution during the creation process. It provides a user interface to manage folders and files. You can learn more about the module in the [File Management](../../modules/file-management.md) document. -![file-management](images/file-management-index-page.png) \ No newline at end of file +![file-management](images/file-management-index-page.png) diff --git a/docs/en/solution-templates/single-layer-web-application/blob-storing.md b/docs/en/solution-templates/single-layer-web-application/blob-storing.md index 4c1d0fe3fdd..4478622be2f 100644 --- a/docs/en/solution-templates/single-layer-web-application/blob-storing.md +++ b/docs/en/solution-templates/single-layer-web-application/blob-storing.md @@ -27,6 +27,12 @@ This document explains how to store BLOBs (Binary Large Objects) in a single-lay In the single-layer solution template, the [Database Provider](../../framework/infrastructure/blob-storing/database.md) is used to store BLOBs in the database. The `Volo.Abp.BlobStoring.Database.EntityFrameworkCore` or `Volo.Abp.BlobStoring.Database.MongoDB` package provides the required implementations for storing and retrieving BLOBs in the database. This setup is integrated into the single-layer solution template and is used across all related projects. You can modify the database configuration in the `appsettings.json` file of the API project. +## Provider Selection + +The Database Provider is selected by default. In ABP Studio, use the BLOB Storing step to keep database storage, configure the [File System Provider](../../framework/infrastructure/blob-storing/file-system.md), or choose manual configuration for another provider. In the CLI, pass `--blob-storage database`, `--blob-storage file-system`, or `--blob-storage manual`. When using file-system storage, pass `--blob-storage-path ` to set the base path; otherwise, `./BlobStoring` is used. + +If you choose manual configuration, configure your preferred provider before using BLOB storage. See the [BLOB Storing provider documentation](../../framework/infrastructure/blob-storing/index.md) for the available providers and their setup requirements. + You can use the `IBlobContainer` or `IBlobContainer` service to store and retrieve BLOBs. Here is an example of storing a BLOB: ```csharp @@ -55,4 +61,4 @@ public class MyService : ITransientDependency The *File Management* module is optional and can be added to the solution during the creation process. It provides a user interface for managing folders and files. For more information, see the [File Management *](../../modules/file-management.md) document. -![file-management](images/file-management-index-page.png) \ No newline at end of file +![file-management](images/file-management-index-page.png)