Rask.Storage
0.23.1-alpha.0.65
See the version list below for details.
dotnet add package Rask.Storage --version 0.23.1-alpha.0.65
NuGet\Install-Package Rask.Storage -Version 0.23.1-alpha.0.65
<PackageReference Include="Rask.Storage" Version="0.23.1-alpha.0.65" />
<PackageVersion Include="Rask.Storage" Version="0.23.1-alpha.0.65" />
<PackageReference Include="Rask.Storage" />
paket add Rask.Storage --version 0.23.1-alpha.0.65
#r "nuget: Rask.Storage, 0.23.1-alpha.0.65"
#:package Rask.Storage@0.23.1-alpha.0.65
#addin nuget:?package=Rask.Storage&version=0.23.1-alpha.0.65&prerelease
#tool nuget:?package=Rask.Storage&version=0.23.1-alpha.0.65&prerelease
Rask.Storage
Keep the files your users upload — on a directory on the deploy volume by default, or in S3-compatible storage or Azure Blob Storage by configuration — with a row per file on your application's own database.
builder.Services.AddRaskStorage<AppDbContext>();
// OnModelCreating: modelBuilder.AddRaskStorage();
// after app.MapRask<App>(): app.MapRaskStorage();
public sealed class SetCover
{
public async Task Handle(Post post, RaskFile upload)
{
var file = await Files.Save(upload.OpenReadStream, upload.Name, upload.Size).Public();
post.CoverId = file.Id;
}
}
Img.Src(Files.Url(post.CoverId)); // a public file
await Files.Share(invoice.FileId).For(5.Minutes); // a private one, expiring
app.MapGet("/invoices/{id}", (Guid id) => Files.Download(id)); // behind your own check
- Content types are sniffed from the bytes, never taken from the browser. Only images, audio and video are served inline; everything else — SVG and HTML included — downloads as an attachment.
- Uploads are capped at 50 MB by default (
MaxFileSize), andAllowedTypesnarrows what is accepted. - Orphaned bytes are swept: a file whose row was never written is removed after a grace period.
- A file belongs to the tenant that saved it in a multi-tenant app: finding, opening, linking and deleting
it by id are scoped to the tenant in flight, so another tenant holding the id cannot reach it.
StoredFile.Readlists uploads with no context of your own.
Included in the Rask package and on by default. See the
file storage guide.
| Product | Versions 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. net11.0 is compatible. |
-
net10.0
- Microsoft.EntityFrameworkCore (>= 10.0.12)
- Rask.Data (>= 0.23.1-alpha.0.65)
-
net11.0
- Microsoft.EntityFrameworkCore (>= 10.0.12)
- Rask.Data (>= 0.23.1-alpha.0.65)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Rask.Storage:
| Package | Downloads |
|---|---|
|
Rask.Server
The ASP.NET host for Rask, a full-stack .NET web framework, with every battery: database (SQLite, PostgreSQL or SQL Server, picked by Rask:Database:Provider), mediator and query cache, accounts, background jobs, transactional email, cache, file storage, outbox, operator dashboard, durable logs, Web Push, SQLite snapshots and continuous backup. Renders Rask components with live updates over a WebSocket. RaskApp.Create(args).Run<App>() is the whole Program.cs; app.Configure(c => c.Jobs.Off()) is how an app does without one. Depends on Rask, the shared core. |
|
|
Rask.Dashboard
A built-in operator dashboard for the Rask One Person Framework batteries. Mounts at /_rask and shows the outbox, background jobs, queued mail, cache and stored files from the application's own database — queue depth, dead letters, the errors behind them, stored email previews, the recurring-job schedule, SQLite pragmas and backup status. A live log tail is built in, and becomes a searchable history when Rask.Logging is installed. Panels appear only for the batteries the app actually registered. Protected by an authorization policy that fails closed outside Development. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.23.1-alpha.0.84 | 29 | 9/25/2026 |
| 0.23.1-alpha.0.82 | 0 | 9/25/2026 |
| 0.23.1-alpha.0.81 | 15 | 9/25/2026 |
| 0.23.1-alpha.0.80 | 19 | 9/25/2026 |
| 0.23.1-alpha.0.79 | 37 | 9/25/2026 |
| 0.23.1-alpha.0.78 | 19 | 9/25/2026 |
| 0.23.1-alpha.0.76 | 32 | 9/25/2026 |
| 0.23.1-alpha.0.74 | 23 | 9/25/2026 |
| 0.23.1-alpha.0.72 | 25 | 9/25/2026 |
| 0.23.1-alpha.0.70 | 27 | 9/25/2026 |
| 0.23.1-alpha.0.69 | 31 | 9/25/2026 |
| 0.23.1-alpha.0.68 | 41 | 9/25/2026 |
| 0.23.1-alpha.0.67 | 29 | 9/25/2026 |
| 0.23.1-alpha.0.66 | 30 | 9/24/2026 |
| 0.23.1-alpha.0.65 | 31 | 9/24/2026 |
| 0.23.1-alpha.0.64 | 28 | 9/24/2026 |
| 0.23.1-alpha.0.62 | 33 | 9/24/2026 |
| 0.23.1-alpha.0.61 | 41 | 9/24/2026 |
| 0.23.1-alpha.0.50 | 33 | 9/24/2026 |
| 0.23.0 | 163 | 9/18/2026 |