Rask.Storage
0.23.0
See the version list below for details.
dotnet add package Rask.Storage --version 0.23.0
NuGet\Install-Package Rask.Storage -Version 0.23.0
<PackageReference Include="Rask.Storage" Version="0.23.0" />
<PackageVersion Include="Rask.Storage" Version="0.23.0" />
<PackageReference Include="Rask.Storage" />
paket add Rask.Storage --version 0.23.0
#r "nuget: Rask.Storage, 0.23.0"
#:package Rask.Storage@0.23.0
#addin nuget:?package=Rask.Storage&version=0.23.0
#tool nuget:?package=Rask.Storage&version=0.23.0
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.UseRask<App>(): app.MapRaskStorage();
public sealed class SetCover(IFiles files)
{
public async Task HandleAsync(Post post, RaskFile upload, CancellationToken ct)
{
var file = await files.SaveAsync(upload.OpenReadStream, upload.Name, upload.Size, o => o.Public = true, ct);
post.CoverId = file.Id;
}
}
Img.Src(files.Url(post.CoverId)); // a public file
await files.TemporaryUrlAsync(invoice.FileId, TimeSpan.FromMinutes(5)); // a private one, expiring
app.MapGet("/invoices/{id}", (Guid id, IFiles files) => 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.
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)
-
net11.0
- Microsoft.EntityFrameworkCore (>= 10.0.12)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Rask.Storage:
| Package | Downloads |
|---|---|
|
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. |
|
|
Rask
The one reference a Rask application needs, server or browser. On a server target (net10.0 or net11.0) it brings the ASP.NET host plus every battery — database (SQLite, PostgreSQL or SQL Server, picked by Rask:Database:Provider), mediator, background jobs, transactional email, cache, file storage, outbox, operator dashboard, durable logs, Web Push, and SQLite snapshots and continuous backup — with RaskApp.Create(args) as the entry point. On a browser target it brings the WebAssembly host, the source-generated mediator, the query cache and remote dispatch. Everything referenced is wired and on; app.Configure(c => c.Jobs.Off()) is how an app does without one. Reference Rask.Server for a lean host with no database. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.23.1-alpha.0.4 | 33 | 9/18/2026 |
| 0.23.1-alpha.0.3 | 34 | 9/18/2026 |
| 0.23.1-alpha.0.2 | 46 | 9/18/2026 |
| 0.23.0 | 43 | 9/18/2026 |
| 0.22.1-alpha.0.23 | 41 | 9/17/2026 |
| 0.22.1-alpha.0.22 | 39 | 9/17/2026 |
| 0.22.1-alpha.0.21 | 34 | 9/17/2026 |
| 0.22.1-alpha.0.20 | 39 | 9/17/2026 |
| 0.22.1-alpha.0.18 | 42 | 9/17/2026 |
| 0.22.1-alpha.0.16 | 38 | 9/17/2026 |
| 0.22.1-alpha.0.15 | 41 | 9/16/2026 |
| 0.22.1-alpha.0.14 | 42 | 9/16/2026 |
| 0.22.1-alpha.0.13 | 46 | 9/16/2026 |
| 0.22.1-alpha.0.12 | 43 | 9/16/2026 |
| 0.22.1-alpha.0.9 | 51 | 9/16/2026 |
| 0.22.1-alpha.0.8 | 46 | 9/16/2026 |
| 0.22.1-alpha.0.7 | 43 | 9/16/2026 |
| 0.22.1-alpha.0.6 | 45 | 9/16/2026 |
| 0.22.1-alpha.0.4 | 44 | 9/16/2026 |
| 0.22.1-alpha.0.3 | 48 | 9/16/2026 |