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