From a5bb5d45a358091d1a850a6c6b2370685c79226b Mon Sep 17 00:00:00 2001 From: Marcel Raddatz Date: Fri, 10 Apr 2026 09:38:48 +0200 Subject: [PATCH] docs(config): annotate multipart limits explaining JSON body is not covered Co-Authored-By: Claude Sonnet 4.6 --- backend/src/main/resources/application.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/src/main/resources/application.yml b/backend/src/main/resources/application.yml index 6104c5e..097c33a 100644 --- a/backend/src/main/resources/application.yml +++ b/backend/src/main/resources/application.yml @@ -21,6 +21,10 @@ spring: servlet: multipart: + # NOTE: these limits only apply to multipart/form-data uploads. + # Images sent as base64 inside a JSON body (Content-Type: application/json) + # are NOT constrained here — the @Size(max=7_000_000) annotation on + # RecipeCreateRequest.heroImageUrl enforces the limit for that path. max-file-size: 5MB max-request-size: 6MB