Osy#betaRun it on Osyrin: osyrin.com

Reference

Storage

8 pages.

A file's history — supersede, and what each version keeps

Replacing a stored file's content while keeping what it said before. The FILE is the identity — a record pointing at it never re-points, and its…

Files (addressing something the app stores)

The platform stores a file two ways, and which one you hold decides how you address it. A PATH-keyed file lives at an address you chose and becomes a…

File.IsOwnUpload and File.SaveUpload

A private upload's path records WHO uploaded it — the signed-in account, or the browser's visit when nobody was signed in. `File.IsOwnUpload(path)`…

File.SignedUrl

Mints a temporary, signed URL that lets an authorized browser fetch a PRIVATE app file — one stored outside `public/` — without carrying a login…

File.Url

Turns an app-relative file path into the public URL a browser can fetch it from — `File.Url("public/x.png")` returns `/_osy/files/public/x.png`. Pure…

File.WriteAllBytes(..., about: row)

Write a file by path ABOUT a row — a receipt for an order, a label for a shipment — and the row finds it again: File.About(row) lists its files…

Image.Thumbnail, Resize and Convert (a stored image, transformed)

Three server-side transforms over a stored image, each answering a NEW `FileAsset`: `Thumbnail` fits the image within `max` pixels on its longest…

[Attachment] — a file readable wherever its row is

`[Attachment]` on a `FileAsset` reference makes the file readable by exactly the people who may read the row holding it — through that row's own…