DKNet.Svc.BlobStorage.AwsS3 13.2.4

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.4
                    
NuGet\Install-Package DKNet.Svc.BlobStorage.AwsS3 -Version 13.2.4
                    
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.4" />
                    
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.4" />
                    
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.4
                    
#r "nuget: DKNet.Svc.BlobStorage.AwsS3, 13.2.4"
                    
#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.4
                    
#: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.4
                    
Install as a Cake Addin
#tool nuget:?package=DKNet.Svc.BlobStorage.AwsS3&version=13.2.4
                    
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 0 11/26/2026
13.3.2 114 11/3/2026
13.3.1 120 10/26/2026
13.3.0 123 10/22/2026
13.2.8 108 10/22/2026
13.2.7 146 10/11/2026
13.2.6 106 10/10/2026
13.2.5 125 10/2/2026
13.2.4 116 10/1/2026
13.2.3 113 10/1/2026
13.2.2 107 10/1/2026
13.2.1 114 10/1/2026
13.2.0 113 10/1/2026
13.1.3 116 9/21/2026
13.1.2 116 9/18/2026
13.1.1 110 9/18/2026
13.1.0 116 9/18/2026
13.0.2 109 9/18/2026
13.0.1 109 9/18/2026
13.0.0 110 9/18/2026
Loading failed