diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-30 13:59:26 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-30 13:59:26 +0300 |
| commit | 6662a07a58d8d64792501864893ba543581c4dd8 (patch) | |
| tree | 69ba1c7c188f86c75f9a42b852a2229f89e8e272 /web/css/components.css | |
| parent | 291161bcecc8904d1bbe96a5a183ceadd37d5f0e (diff) | |
task ha: enforce upload limits, role checks, probing, thumbnails, cleanup
- handlers.go: enforce MAX_UPLOAD_SIZE_MB via http.MaxBytesReader and
http.MaxBytesError mapping to 413.
- service/media.go: UploadMedia now verifies owner/admin, rejects unsupported
extensions, probes metadata with ffprobe, generates video thumbnails,
enforces unique filenames, and cleans up temp files + hard-deletes DB row
on any failure.
- Reconcile PLAN.md 500MB -> 100MB default to match AGENTS.md/config.
- Add service and API tests for max-size rejection, unsupported extension,
missing role, probe failure, thumbnail failure, cleanup, and success paths.
Diffstat (limited to 'web/css/components.css')
0 files changed, 0 insertions, 0 deletions
