From 4fa6b83a10ee04f6cdd24b2d0cedc99645df34fe Mon Sep 17 00:00:00 2001 From: vladp Date: Fri, 26 Dec 2025 19:15:45 +0700 Subject: [PATCH] add post size --- src/main/resources/application.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index 511bd2f..0ad1403 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -16,11 +16,10 @@ spring: servlet: multipart: + max-file-size: 10MB + max-request-size: 100MB enabled: true - resolve-lazily: true - file-size-threshold: 0 - max-file-size: 5242880 - max-request-size: 10485760 + resolve-lazily: false file: storage: @@ -35,7 +34,7 @@ file: server: port: ${SERVER_PORT:8080} tomcat: - max-swallow-size: -1 # Отключаем ограничения Tomcat + max-swallow-size: -1 max-http-form-post-size: 10 security: