BarakoCMS.Files
0.1.3
See the version list below for details.
dotnet add package BarakoCMS.Files --version 0.1.3
NuGet\Install-Package BarakoCMS.Files -Version 0.1.3
<PackageReference Include="BarakoCMS.Files" Version="0.1.3" />
<PackageVersion Include="BarakoCMS.Files" Version="0.1.3" />
<PackageReference Include="BarakoCMS.Files" />
paket add BarakoCMS.Files --version 0.1.3
#r "nuget: BarakoCMS.Files, 0.1.3"
#:package BarakoCMS.Files@0.1.3
#addin nuget:?package=BarakoCMS.Files&version=0.1.3
#tool nuget:?package=BarakoCMS.Files&version=0.1.3
<div align="center"> <h1>BarakoCMS.Files</h1> <p><em>Optional file-attachment module for barakoCMS.</em></p> </div>
Adds file upload + download to barakoCMS, storing bytes in Postgres via Marten. Handy for receipts, photos, and documents attached to your own records.
Enable it
builder.Services.AddBarakoCMS(builder.Configuration, modules =>
{
modules.Add(new BarakoCMS.Files.FilesModule());
});
Endpoints
| Method & path | Purpose |
|---|---|
POST /api/files |
Upload one image or PDF (≤ 10 MB, multipart). Returns { id, fileName, contentType, size }. |
GET /api/files/{id} |
Stream the file back with its original content type. Requires a Bearer token. |
Attach the returned id to your own documents; fetch it later with the download endpoint. Because
GET requires authentication, browser <img>/<a> tags can't load it directly — fetch it with the
token and use an object URL.
Notes
Files live in the stored_files Marten document (bytes in Postgres). This suits low-to-moderate
volumes of small files; for large-scale blob storage, use an object store instead.
Requires
barakoCMS ≥ 2.2.0. Targets .NET 8.
License
MPL-2.0 © BaryoDev
If barakoCMS is useful to you, a star on the repository helps other people find it.
| 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 was computed. 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 was computed. 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. |
-
net8.0
- AspNetCore.HealthChecks.Npgsql (>= 8.0.0)
- AspNetCore.HealthChecks.System (>= 9.0.0)
- AspNetCore.HealthChecks.UI (>= 8.0.0)
- AspNetCore.HealthChecks.UI.Client (>= 8.0.0)
- AspNetCore.HealthChecks.UI.InMemory.Storage (>= 8.0.0)
- BarakoCMS (>= 3.20.0)
- BCrypt.Net-Next (>= 4.0.3)
- FastEndpoints (>= 5.21.2)
- FastEndpoints.Security (>= 5.21.2)
- FastEndpoints.Swagger (>= 5.21.2)
- IdentityModel (>= 7.0.0)
- KubernetesClient (>= 18.0.13)
- Marten (>= 8.37.0)
- Microsoft.Extensions.Caching.Memory (>= 8.0.1)
- Microsoft.Extensions.Http.Resilience (>= 10.1.0)
- Microsoft.IdentityModel.JsonWebTokens (>= 8.22.0)
- Otp.NET (>= 1.4.0)
- prometheus-net.AspNetCore (>= 8.2.1)
- Serilog.AspNetCore (>= 10.0.0)
- Serilog.Sinks.Console (>= 6.1.1)
- Serilog.Sinks.File (>= 7.0.0)
- System.IdentityModel.Tokens.Jwt (>= 8.22.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on BarakoCMS.Files:
| Package | Downloads |
|---|---|
|
BarakoCMS.Files.S3
S3-compatible object storage provider for the barakoCMS Files module. Works with AWS S3, Cloudflare R2, and self-hosted S3-compatible stores such as SeaweedFS. Public files get a direct, CDN-friendly URL; private files are proxied through the API. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 5.1.0 | 43 | 10/23/2026 |
| 5.0.0 | 96 | 10/14/2026 |
| 4.6.0 | 104 | 10/12/2026 |
| 4.5.0 | 88 | 10/11/2026 |
| 4.4.0 | 108 | 10/4/2026 |
| 4.3.1 | 104 | 9/29/2026 |
| 4.3.0 | 120 | 9/21/2026 |
| 4.2.1 | 106 | 9/18/2026 |
| 4.1.1 | 120 | 9/18/2026 |
| 4.0.0 | 123 | 9/7/2026 |
| 0.2.0 | 141 | 8/20/2026 |
| 0.1.3 | 146 | 8/15/2026 |
| 0.1.2 | 222 | 8/3/2026 |
| 0.1.1 | 162 | 7/21/2026 |
| 0.1.0 | 115 | 7/15/2026 |