fix: adjust upload limits to 20MB profile, 30MB portfolio

This commit is contained in:
2026-07-10 12:25:25 +01:00
parent 9ea929901a
commit 0c91482aac
6 changed files with 5 additions and 17 deletions
+1
View File
@@ -1002,6 +1002,7 @@ func UploadProfilePictureHandler(w http.ResponseWriter, r *http.Request) {
return
}
// #nosec G120 — body size limited by limitBody middleware
if err := r.ParseMultipartForm(1 << 20); err != nil {
var maxBytesErr *http.MaxBytesError
if errors.As(err, &maxBytesErr) {