fix: adjust upload limits to 20MB profile, 30MB portfolio
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user