The SDK sends the file to https://<ref>.files.sypnia.com/object/<bucket>/<path> with the signed-in user’s token. For big files it uses the resumable protocol and sends it in parts.
Files checks your rules
Files reads who the user is from the token, and asks your project’s Postgres whether the policies on sypnia_files.objects allow this insert for this bucket and path. If not, the answer is 403 and nothing is stored.
The object is stored
The bytes go to S3 (or your bucket) under the project’s prefix; a row in sypnia_files.objects records the bucket, path, size, type, owner and a checksum. With scanning on, the row stays pending until the scan says clean.
Someone downloads it
A public file is served from https://<ref>.files.sypnia.app/<bucket>/<path> through the CDN. A private file is served to whoever the rules allow, with a signed URL or with their token, and never cached for others.
Images on the way out
?width=400&format=webp on an image URL returns a resized copy, made once and cached at the edge.
Two addresses
Address
For
https://<ref>.files.sypnia.com
the API: uploads, listing, policies, signed URLs, the S3 API
https://<ref>.files.sypnia.app
the content: files and image transforms, on a separate domain so an uploaded HTML or SVG file can never touch Sypnia’s cookies