Skip to main content

Module media

Module media 

Source
Expand description

Media — per-tenant uploaded files (images + documents).

Single table with a kind discriminator so the admin can show two filtered views (“Media” for images, “Documents” for the rest) over the same storage backend.

Structs§

Media
One row per uploaded file. Bytes live behind the per-tenant Storage trait, keyed by storage_key. Resized variants live in cms_media_rendition (see crate::rendition); this table is just the upload surface.
MediaCollection
Editor-curated folder for media. Tree-shaped (parent_id FK to self) so sites can group assets per team / per campaign / per product, with sub-folders for finer-grain organization.