← All BaaS products
File Storage

FileServer

Kanject.FileServer

Secure, scalable file storage — declarative resource servers, source-generated upload methods and signed upload URLs, S3-backed, deployed into your own AWS.

RESOURCE SERVERS · declared, source-generated
[ResourceServer]Public
ItemResourceServer
item-images
.jpg · .png · .webp4 MB × 10
SHA-256WebP
[ResourceServer]Public
ProfileResourceServer
profile
.jpg · .png · .webp2 MB
[ResourceServer]Private
ShippingLabelResourceServer
shipping-labels
.jpg · .png · .pdf200 KB
UPLOAD · routed to ItemResourceServer · Public · /item-images · max 4 MB × 10
sneaker-side.jpg
2.4 MB · JPG · item-images/itm_8f3a/
Public
STORED · PUBLIC URL
ItemResourceServer · sneaker-side.webp
Public · owner-scoped
GET200 · 248ms
resource-iditm_8f3a
content-typeimage/webp · 1.1 MB
content-hashsha-256 · 9c3e7a…
validationpassed
6
CAPABILITIES
YOUR ACCOUNT
NATIVE C#
DOCKER NATIVE

Built for files of every shape and size.

01

Declarative resource servers

Storage location, accepted types, and size/count limits as attributes on a partial class.

02

Source-generated upload

Typed Upload{Resource}Async methods and pre-signed upload URLs — no boilerplate.

03

Content validation

Rejects dangerous PDFs (JavaScript / launch actions) and strips JPEG EXIF; plug in your own IFileContentValidator.

04

Public / private + owner scoping

StorageLocation.Public/Private, with owner-id validation on read and delete.

05

Accepted-type + size limits

[AcceptedFileTypes] and [FileUploadSettings] gate every upload (size in KB).

06

Lifecycle expiration

Opt-in object expiry and incomplete-multipart-upload cleanup.

Docker native

Built in .NET.
Spoken in every language.

Every FileServer module ships as both a NuGet package and an official Docker image — runs on ECS, EKS, Fargate, App Runner, or your laptop. Call its HTTP/gRPC API from Python, Go, Node, Java, Rust, or anything else that speaks the wire.

  • Multi-arch images: amd64 + arm64 from the same tag
  • OpenAPI + gRPC reflection enabled out of the box
  • Same configuration surface — env vars, Parameter Store, file
$ docker pull kanject/fileserver:latest
One NuGet install. Zero glue code.

Kanject.FileServer ships into your AWS, registers itself with one line in Program.cs, and exposes a typed API the rest of your service can use immediately.

Read the deployment guide →
Ready to ship?

Simplify your cloud
journey today.

Join forward-thinking developers and businesses who trust Kanject to eliminate cloud complexity and accelerate innovation.