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 }