Skip to content

Foundatio.Minio ​

Foundatio provides Minio file storage for S3-compatible object storage. View source on GitHub →

Overview ​

ImplementationInterfacePackage
MinioFileStorageIFileStorageFoundatio.Minio

Installation ​

bash
dotnet add package Foundatio.Minio

Usage ​

csharp
using Foundatio.Storage;

var storage = new MinioFileStorage(o =>
    o.ConnectionString = "endpoint=play.min.io;accessKey=minioadmin;secretKey=minioadmin;bucket=my-bucket");

await storage.SaveFileAsync("documents/report.pdf", pdfStream);
var stream = await storage.GetFileStreamAsync("documents/report.pdf", StreamMode.Read);

Configuration ​

OptionTypeRequiredDefaultDescription
ConnectionStringstring✅Connection string
AutoCreateBucketboolfalseAuto-create bucket if missing

For additional options, see MinioFileStorageOptions source.

Next Steps ​

Released under the Apache 2.0 License.