DKNet.Svc.BlobStorage.Local 13.3.2

dotnet add package DKNet.Svc.BlobStorage.Local --version 13.3.2
                    
NuGet\Install-Package DKNet.Svc.BlobStorage.Local -Version 13.3.2
                    
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.Local" Version="13.3.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DKNet.Svc.BlobStorage.Local" Version="13.3.2" />
                    
Directory.Packages.props
<PackageReference Include="DKNet.Svc.BlobStorage.Local" />
                    
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.Local --version 13.3.2
                    
#r "nuget: DKNet.Svc.BlobStorage.Local, 13.3.2"
                    
#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.Local@13.3.2
                    
#: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.Local&version=13.3.2
                    
Install as a Cake Addin
#tool nuget:?package=DKNet.Svc.BlobStorage.Local&version=13.3.2
                    
Install as a Cake Tool

DKNet.Svc.BlobStorage.Local

Local-filesystem implementation of IBlobService for .NET developers, storing blobs under a configured root folder with path-traversal protection.

✨ Why use it?

  • Run a real IBlobService in local development, unit tests, and CI with nothing to provision and nothing to clean up but a folder.
  • Keep production code identical — only the registration line changes when swapping in S3 or Azure.
  • Block escape attempts instead of trusting input — a caller-supplied ../ cannot reach outside the root folder.
  • Ship a single-instance deployment on a mounted volume without taking a storage-SDK dependency.

🚀 Quick Start

dotnet new console -f net10.0 -n LocalBlobDemo
cd LocalBlobDemo
dotnet add package DKNet.Svc.BlobStorage.Local
dotnet add package Microsoft.Extensions.Logging
using DKNet.Svc.BlobStorage.Abstractions;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;

var config = new ConfigurationBuilder()
    .AddInMemoryCollection(new Dictionary<string, string?>
    {
        ["BlobStorage:LocalFolder:RootFolder"] = Path.Combine(Path.GetTempPath(), "blob-demo")
    })
    .Build();

var services = new ServiceCollection().AddLogging().AddLocalDirectoryBlobService(config);
using var provider = services.BuildServiceProvider();
var blobService = provider.GetRequiredService<IBlobService>();

var location = await blobService.SaveAsync(
    new BlobDetails.BlobData("reports/monthly.pdf", BinaryData.FromString("...")) { Overwrite = true });
Console.WriteLine(location);

Run with dotnet run.

Documentation

Guide Read when
Package overview Start with architecture and the end-to-end flow.
Configure and operate local storage Set the root folder, and work with save conflicts, directory listing, and recursive delete.
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.2 107 11/3/2026
13.3.1 106 10/26/2026
13.3.0 96 10/22/2026
13.2.8 104 10/22/2026
13.2.7 129 10/11/2026
13.2.6 104 10/10/2026
13.2.5 117 10/2/2026
13.2.4 107 10/1/2026
13.2.3 110 10/1/2026
13.2.2 100 10/1/2026
13.2.1 107 10/1/2026
13.2.0 108 10/1/2026
13.1.3 124 9/21/2026
13.1.2 109 9/18/2026
13.1.1 106 9/18/2026
13.1.0 101 9/18/2026
13.0.2 107 9/18/2026
13.0.1 107 9/18/2026
13.0.0 116 9/18/2026
12.0.0 114 9/17/2026
Loading failed