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
+2 -2
View File
@@ -69,8 +69,8 @@ func limitBody(limit int64) func(http.Handler) http.Handler {
const (
defaultBodyLimit int64 = 1 * 1024 * 1024 // 1MB
uploadBodyLimit int64 = 15 * 1024 * 1024 // 15MB
portfolioBodyLimit int64 = 40 * 1024 * 1024 // 40MB (7 variants from 20MB source)
uploadBodyLimit int64 = 20 * 1024 * 1024 // 20MB
portfolioBodyLimit int64 = 30 * 1024 * 1024 // 30MB (7 variants)
)
// nColor / bColor — Chi-style ANSI colors for request logging.