From 3001e816cdd64fa406dc00c628407490a7666b6c Mon Sep 17 00:00:00 2001 From: Sam Rolfe Date: Mon, 10 Aug 2026 14:20:35 +1000 Subject: [PATCH] =?UTF-8?q?fix:=20admin=20'Upload=20photo'=20action=20(mod?= =?UTF-8?q?al=20FileUpload,=20stores=20to=20MinIO,=20sets=20photo=5Furl=20?= =?UTF-8?q?=E2=80=94=20no=20foreach=20500);=20user=20upload=20limit=205MB-?= =?UTF-8?q?>10MB;=20photo=5Furl=20input=20shows=20full=20value=20(visual?= =?UTF-8?q?=20truncation=20only)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/internal/handlers/tags.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/internal/handlers/tags.go b/frontend/internal/handlers/tags.go index 21a4a64..84a0725 100644 --- a/frontend/internal/handlers/tags.go +++ b/frontend/internal/handlers/tags.go @@ -184,7 +184,7 @@ func (a *App) UploadPhoto(w http.ResponseWriter, r *http.Request) { return } - if err := r.ParseMultipartForm(5 << 20); err != nil { // 5 MB + if err := r.ParseMultipartForm(10 << 20); err != nil { // 10 MB writeUploadMsg(w, "Upload too large (max 5 MB).") return } @@ -195,7 +195,7 @@ func (a *App) UploadPhoto(w http.ResponseWriter, r *http.Request) { } defer file.Close() - if header.Size > 5<<20 { + if header.Size > 10<<20 { writeUploadMsg(w, "Upload too large (max 5 MB).") return }