UltronFramework.FileManager.FileSystem 10.0.10

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

UltronFramework.FileManager.FileSystem

Implementación de IFileManager sobre el sistema de archivos local con generación de URLs HTTP públicas. Mantiene la misma superficie de uso que UltronFramework.FileManager.AzCloud, guardando los archivos en una raíz configurable y organizándolos por contenedor.

Configuración

using UltronFramework.FileManager.FileSystem.Extensions;

builder.Services.UseFileManagerFileSystem(options =>
{
    options.RootPath = builder.Configuration["FileStorage:RootPath"]!;
    options.RequestPath = builder.Configuration["FileStorage:RequestPath"] ?? "/files";
    options.PublicBaseUrl = builder.Configuration["FileStorage:PublicBaseUrl"];
});

WebApplication app = builder.Build();

// Si existe un proxy inverso, debe ejecutarse después de UseForwardedHeaders.
app.UseFileManagerFileSystemFiles();
{
  "FileStorage": {
    "RootPath": "D:\\PosCloud\\Files",
    "RequestPath": "/files",
    "PublicBaseUrl": "https://api.example.com"
  }
}
  • RootPath es exclusivamente la ubicación física de almacenamiento.
  • RequestPath es la ruta pública que sirve el API.
  • PublicBaseUrl es la URL externa del API, sin incluir RequestPath. En producción se recomienda configurarla explícitamente; si se omite, se deriva de la petición HTTP actual.
  • PublicCacheDuration controla el encabezado público de caché y tiene un valor predeterminado de siete días.

Una llamada como SaveFileAsync("documents", "invoices/1.pdf", ...) devuelve, por ejemplo, https://api.example.com/files/documents/invoices/1.pdf en UriCloud.

Los archivos se persisten con el siguiente layout:

{RootPath}/{containerName}/{relativePath}

El ContentType se guarda en un archivo lateral .contenttype para que las operaciones de lectura, listado y descarga mantengan la información del archivo. Estos metadatos no se exponen mediante la ruta pública.

UseFileManagerFileSystemFiles publica todo archivo administrado bajo RootPath. No se debe usar para contenido privado; para ese caso se requiere un endpoint autenticado o URLs firmadas.

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
10.0.10 84 8/4/2026
10.0.9 83 8/3/2026
10.0.8 84 8/3/2026
10.0.7 90 7/30/2026
10.0.6 97 7/27/2026
10.0.5 107 7/14/2026
10.0.4 96 7/14/2026
10.0.3 112 7/12/2026
10.0.2 104 7/12/2026
10.0.1 99 7/8/2026

Expone archivos locales mediante una ruta HTTP pública configurable y genera UriCloud con la URL externa del API, con soporte para proxy, PathBase y procesos en segundo plano.