Attachments are stored in Postgres today (simple, zero-infra, 5 MB cap). For larger deployments an S3-compatible backend (AWS S3, R2, MinIO) would be better.
Proposal: a storage interface in src/lib/services/attachments.ts with db and s3 implementations selected by env var; presigned URLs for downloads. Keep the DB backend as the default so small installs stay dependency-free.
Attachments are stored in Postgres today (simple, zero-infra, 5 MB cap). For larger deployments an S3-compatible backend (AWS S3, R2, MinIO) would be better.
Proposal: a storage interface in
src/lib/services/attachments.tswithdbands3implementations selected by env var; presigned URLs for downloads. Keep the DB backend as the default so small installs stay dependency-free.