Skip to content

What Sypnia Files is

Storage for the files of your app, with rules tied to who is signed in, image transforms and an S3-compatible API.

Applies to EngineCloud
View as Markdown
On this page
  1. What you get
  2. How it fits with the rest of Sypnia
  3. What it is not

What you get

WhatIn one line
BucketsFolders at the top level, public (anyone with the link) or private (only who your rules allow)
Access rulesWho can read, upload, replace or delete each file, written as Postgres policies with auth.uid(), the same user as in Sypnia Data
Signed URLsA link to one private file that works for a few minutes, or a link to upload one file without a session
Resumable uploadsBig files and bad connections: an upload that stops continues where it stopped
ImagesResize, crop and convert to WebP or AVIF in the URL, cached at the edge
Use casesEach file records the use case that wrote it, and each upload is a step in that case’s trace (Use cases and traces)
Malware scanningOptional per bucket: a file is served only after it is checked
S3-compatible APIUse the AWS SDK, rclone or any S3 tool against your buckets
Your own storageKeep the objects in your AWS S3, Cloudflare R2 or MinIO bucket

How it fits with the rest of Sypnia

  • With Sypnia Data in the same project, file metadata lives in your project’s database, so a policy can join files with your tables («a customer can see the receipt of their own order»).
  • Sypnia Run apps get the Files address and keys as variables when you connect them.
  • Sypnia Mail can attach a file from a bucket by its path.
  • Sypnia Domains serves your public files on your own address, such as cdn.laespiga.co (Your own address).
  • Sypnia Telemetry shows every upload and download inside the trace of the use case that made it.

Files also works alone: point it at any issuer of JWTs (Auth0, Clerk, Firebase, your own) and it checks them the same way.

What it is not

  • Not a video streaming service: it stores and serves video files, without transcoding to adaptive streams.
  • Not a backup product for your computers.
  • Not a file-sharing app with folders for people; it is the storage behind your app.
  1. What you get
  2. How it fits with the rest of Sypnia
  3. What it is not

    Search pages, sections and terms