From 1c0eb3be86643814a747da760cce53f4b58fa098 Mon Sep 17 00:00:00 2001 From: Matthew Knight Date: Tue, 17 Feb 2026 16:04:35 -0800 Subject: [PATCH] Configure file upload size limit Fixes #23 Co-Authored-By: Claude Opus 4.6 --- internal/handlers/public/routes.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/handlers/public/routes.go b/internal/handlers/public/routes.go index 1aa6cc7..a146202 100644 --- a/internal/handlers/public/routes.go +++ b/internal/handlers/public/routes.go @@ -27,6 +27,7 @@ type Dependencies struct { func NewRouter(deps Dependencies) *gin.Engine { r := gin.New() + r.MaxMultipartMemory = 10 << 20 // 10 MB r.Use(middleware.RequestID) r.Use(middleware.Logging)