Indiko.Blocks.Storage.Local 2.7.8

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

Indiko.Blocks.Storage.Local

Local file-system implementation of IFileProvider.

Overview

This package stores files on disk and enforces storage constraints from local storage options.

Key Components

  • LocalStorageBlock
  • LocalStorageFileProvider
  • AddLocalStorage(...) extension
  • LocalStorageOptions

DI Registration Entry Points

  • LocalStorageBlock.ConfigureServices(...)
  • services.AddLocalStorage(configuration, logger)

Configuration

LocalStorageOptions:

  • inherited storage settings (MaxFileSize, AllowedFileTypes)
  • Folder

Runtime Behavior and Caveats

  • Validates allowed file extensions and maximum file size.
  • Throws domain-specific exceptions such as:
    • ConfigurationException
    • NotFoundException
    • ConflictException
  • SaveFileAsync(string content) stores UTF-8 bytes of provided raw text.

Minimal Usage

var provider = serviceProvider.GetRequiredService<IFileProvider>();
var fileName = await provider.SaveFileAsync(".txt", "content", cancellationToken);

Target Framework

  • .NET 10
  • Indiko.Blocks.Storage.Abstractions
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
2.7.8 100 5/7/2026
2.7.7 85 5/7/2026
2.7.6 142 4/23/2026
2.7.5 166 4/23/2026
2.7.4 106 4/23/2026
2.7.3 102 4/23/2026
2.7.2 99 4/23/2026
2.7.1 91 4/23/2026
2.7.0 107 4/23/2026
2.6.4 100 4/21/2026
2.6.2 94 4/21/2026
2.6.1 92 4/18/2026
2.6.0 91 4/17/2026
2.5.1 110 4/14/2026
2.5.0 134 3/30/2026
2.2.18 119 3/8/2026
2.2.17 103 3/8/2026
2.2.16 107 3/8/2026
2.2.15 104 3/7/2026
2.2.13 102 3/7/2026
Loading failed