TempFileStorage.AzureBlobStorage
4.0.0-alpha2
See the version list below for details.
dotnet add package TempFileStorage.AzureBlobStorage --version 4.0.0-alpha2
NuGet\Install-Package TempFileStorage.AzureBlobStorage -Version 4.0.0-alpha2
<PackageReference Include="TempFileStorage.AzureBlobStorage" Version="4.0.0-alpha2" />
<PackageVersion Include="TempFileStorage.AzureBlobStorage" Version="4.0.0-alpha2" />
<PackageReference Include="TempFileStorage.AzureBlobStorage" />
paket add TempFileStorage.AzureBlobStorage --version 4.0.0-alpha2
#r "nuget: TempFileStorage.AzureBlobStorage, 4.0.0-alpha2"
#:package TempFileStorage.AzureBlobStorage@4.0.0-alpha2
#addin nuget:?package=TempFileStorage.AzureBlobStorage&version=4.0.0-alpha2&prerelease
#tool nuget:?package=TempFileStorage.AzureBlobStorage&version=4.0.0-alpha2&prerelease
TempFileStorage
Easy .NET standard library for handling file-uploads
Just use ITempFileStorage to store your file during uploads, this will return a key for later use, for when you want to save your form.
Core package comes with In-Memory storage that is usefull for testing or non-multi server setups.
Installing TempFileStorage
You should install TempFileStorage with NuGet:
Install-Package TempFileStorage
Or via the .NET Core command line interface:
dotnet add package TempFileStorage
Usage
Add temp files to your project:
builder.Services
.AddTempFiles(options =>
{
// Temporary files will be held in memory
options.MemoryStorage();
// The interval (in minutes) that will perform a cleanup of all temporary files (default is 15)
options.CleanupInterval = 15;
});
Register the Middleware in your Program.cs to activate the request-middleware:
// Map the download-middleware with a specific pattern (default is "/download-file")
app.MapTempFileDownload("/download-file");
// Map the upload-middleware with a specific pattern (default is "/upload-file")
app.MapTempFileUpload("/upload-file");
Azure.Storage.Blobs
You need to persist your temp file storage in storage blobs if you want to use this in production.
Install the package TempFileStorage.AzureStorageBlobs with NuGet:
Swap the MemoryStorage with AzureStorageBlobs
builder.Services
.AddTempFiles(options =>
{
// Temporary files will be held Azure blob storage container (default is "temp-file-storage")
options.AzureBlobStorage(builder.Configuration.GetConnectionString("StorageAccount"), containerName: "temp-file-storage");
});
SqlServer
You need to persist your temp file storage in a database if you want to use this in production.
Install the package TempFileStorage.SqlServer with NuGet:
Run the SQL-script install.sql on your DB-server.
Swap the MemoryStorage with SqlServer
builder.Services
.AddTempFiles(options =>
{
// Temporary files will be held in database
options.SqlServer(builder.Configuration.GetConnectionString("Database"));
});
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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. |
-
net10.0
- Azure.Storage.Blobs (>= 12.26.0)
- TempFileStorage (>= 4.0.0-alpha4)
-
net8.0
- Azure.Storage.Blobs (>= 12.26.0)
- TempFileStorage (>= 4.0.0-alpha4)
-
net9.0
- Azure.Storage.Blobs (>= 12.26.0)
- TempFileStorage (>= 4.0.0-alpha4)
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 |
|---|---|---|
| 4.0.1 | 301 | 11/24/2025 |
| 4.0.0 | 178 | 11/15/2025 |
| 4.0.0-alpha2 | 270 | 11/12/2025 |
| 4.0.0-alpha | 266 | 11/11/2025 |