From 55b1a45b4dc46653e2438d8c1156f19c8d088078 Mon Sep 17 00:00:00 2001 From: Jake Willmsen <42048994+jdwillmsen@users.noreply.github.com> Date: Fri, 23 Oct 2026 02:09:26 -0500 Subject: [PATCH] fix(usersrole): give the multipart request ceiling headroom over the file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit max-request-size matched max-file-size exactly, so a 2MB file — itself within the limit — was rejected on the part headers and boundaries carried with it. Co-Authored-By: Claude Opus 5.5 (1M context) --- apps/backend/usersrole/src/main/resources/application.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/backend/usersrole/src/main/resources/application.yaml b/apps/backend/usersrole/src/main/resources/application.yaml index f06fff54..66b79439 100644 --- a/apps/backend/usersrole/src/main/resources/application.yaml +++ b/apps/backend/usersrole/src/main/resources/application.yaml @@ -26,7 +26,10 @@ spring: multipart: enabled: true max-file-size: 2MB - max-request-size: 2MB + # Headroom over max-file-size, not a match for it: the request carries the + # part headers and boundaries on top of the file, so an equal ceiling + # rejects a file that is itself within the limit. + max-request-size: 4MB springdoc: api-docs: