File storage
Covers local storage, object storage and upload constraints.
Configuration
Storage is switched by configuration. The default driver is local disk. Switching to object storage requires only a config change; business code is unaffected.
| Setting | Description |
|---|---|
| Driver | Local disk or object storage |
| Root / bucket | Where files are stored |
| Public domain | Prefix for generated access URLs |
Upload constraints
- File size is limited server-side; the frontend hint is advisory only
- File types are checked against a server-side whitelist
- Uploads return a file identifier; business tables store the identifier, not a physical path
Access control
- Private files are accessed through signed server URLs
- Public files are served directly from the public domain
- Deleting a file removes both the storage object and the database record
