DKNet.Svc.BlobStorage.AwsS3 13.2.6

There is a newer version of this package available.
See the version list below for details.
dotnet add package DKNet.Svc.BlobStorage.AwsS3 --version 13.2.6
                    
NuGet\Install-Package DKNet.Svc.BlobStorage.AwsS3 -Version 13.2.6
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DKNet.Svc.BlobStorage.AwsS3" Version="13.2.6" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DKNet.Svc.BlobStorage.AwsS3" Version="13.2.6" />
                    
Directory.Packages.props
<PackageReference Include="DKNet.Svc.BlobStorage.AwsS3" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DKNet.Svc.BlobStorage.AwsS3 --version 13.2.6
                    
#r "nuget: DKNet.Svc.BlobStorage.AwsS3, 13.2.6"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package DKNet.Svc.BlobStorage.AwsS3@13.2.6
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DKNet.Svc.BlobStorage.AwsS3&version=13.2.6
                    
Install as a Cake Addin
#tool nuget:?package=DKNet.Svc.BlobStorage.AwsS3&version=13.2.6
                    
Install as a Cake Tool

DKNet.Svc.BlobStorage.AwsS3

NuGet NuGet Downloads .NET License

AWS S3 (and S3-compatible services such as MinIO or Cloudflare R2) implementation of IBlobService from DKNet.Svc.BlobStorage.Abstractions.

Features

  • S3BlobService — full IBlobService implementation over the AWS SDK
  • Creates the configured bucket on first use if it does not exist
  • Pre-signed public URLs (GetPublicAccessUrl), default 1-hour expiry
  • ForcePathStyle/DisablePayloadSigning options for MinIO and other S3-compatible endpoints

Installation

dotnet add package DKNet.Svc.BlobStorage.AwsS3

Quick Start

// appsettings.json
{
  "BlobService": {
    "S3": {
      "ConnectionString": "https://s3.ap-southeast-1.amazonaws.com",
      "BucketName": "app-documents"
    }
  }
}
using DKNet.Svc.BlobStorage.Abstractions;
using DKNet.Svc.BlobStorage.AwsS3;

builder.Services.AddS3BlobService(builder.Configuration); // binds "BlobService:S3"

public sealed class ReportStorage(IBlobService blobService)
{
    public Task<string> SaveAsync(Stream pdf, CancellationToken ct) =>
        blobService.SaveAsync(new BlobDetails.BlobData("reports/monthly.pdf", BinaryData.FromStream(pdf)), ct);
}

AddS3BlobService(IServiceCollection, IConfiguration) is the only registration entry point. It binds S3Options from the section named by S3Options.Name and registers IBlobService → S3BlobService as Scoped; the call is idempotent.

Configuration — S3Options

S3Options extends BlobServiceOptions, so IncludedExtensions, MaxFileNameLength, and MaxFileSizeInMb apply here unchanged (see the Abstractions package).

Option Type Default Effect
ConnectionString string (required) S3 service endpoint URL, used as the SDK's ServiceURL. A value that does not start with https switches the client to plain HTTP.
BucketName string (required) Target bucket. Created on first use when missing.
AccessKey string? null With Secret, selects BasicAWSCredentials; leave both unset to use the ambient AWS credential chain.
Secret string? null Paired with AccessKey.
RegionEndpointName string? "us-east-1" Declared but never applied to the client — encode the region in ConnectionString.
ForcePathStyle bool false true uses endpoint/bucket/key addressing; required by MinIO and most S3-compatible services.
DisablePayloadSigning bool false Passed to PutObject; needed by some S3-compatible endpoints.
S3Options.Name (static) string "BlobService:S3" The configuration section AddS3BlobService binds from.

Per-call settings live on the request: BlobDetails.BlobData.Overwrite (default false) and GetPublicAccessUrl(..., expiresFromNow) (default TimeSpan.FromHours(1)).

Documentation

Full feature reference, diagrams, and gotchas: https://github.com/baoduy/DKNet/blob/main/docs/Services/DKNet.Svc.BlobStorage.AwsS3.md

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
13.3.3 44 11/26/2026
13.3.2 121 11/3/2026
13.3.1 121 10/26/2026
13.3.0 124 10/22/2026
13.2.8 109 10/22/2026
13.2.7 148 10/11/2026
13.2.6 108 10/10/2026
13.2.5 126 10/2/2026
13.2.4 117 10/1/2026
13.2.3 114 10/1/2026
13.2.2 108 10/1/2026
13.2.1 115 10/1/2026
13.2.0 114 10/1/2026
13.1.3 117 9/21/2026
13.1.2 117 9/18/2026
13.1.1 111 9/18/2026
13.1.0 117 9/18/2026
13.0.2 110 9/18/2026
13.0.1 110 9/18/2026
13.0.0 110 9/18/2026
Loading failed