From 5af4d0b25122442d96309a86af06cda6b4cb0c03 Mon Sep 17 00:00:00 2001 From: Debasish Chakraborty <117706910+debasishchakraborty-egovt@users.noreply.github.com> Date: Wed, 16 Oct 2024 10:51:51 +0530 Subject: [PATCH 1/3] ISTE-473 : added chnages as getting 413 error --- .../egov-hrms/src/main/resources/application.properties | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/business-services/egov-hrms/src/main/resources/application.properties b/business-services/egov-hrms/src/main/resources/application.properties index 2804bb707..a6622f568 100644 --- a/business-services/egov-hrms/src/main/resources/application.properties +++ b/business-services/egov-hrms/src/main/resources/application.properties @@ -127,3 +127,9 @@ log4j.logger.org.springframework.jdbc.core = TRACE state.level.tenant.id=pb sms.user.creation.enabled=true + +# Maximum file size (for individual files) +spring.servlet.multipart.max-file-size=200MB + +# Maximum request size (total size of all files in a request) +spring.servlet.multipart.max-request-size=200MB From 8e90c21d9e7ad9cafb7b936910c1ffe88a64ebaf Mon Sep 17 00:00:00 2001 From: Debasish Chakraborty <117706910+debasishchakraborty-egovt@users.noreply.github.com> Date: Wed, 16 Oct 2024 15:20:52 +0530 Subject: [PATCH 2/3] Update application.properties --- .../egov-hrms/src/main/resources/application.properties | 3 +++ 1 file changed, 3 insertions(+) diff --git a/business-services/egov-hrms/src/main/resources/application.properties b/business-services/egov-hrms/src/main/resources/application.properties index a6622f568..9a17ea2cc 100644 --- a/business-services/egov-hrms/src/main/resources/application.properties +++ b/business-services/egov-hrms/src/main/resources/application.properties @@ -133,3 +133,6 @@ spring.servlet.multipart.max-file-size=200MB # Maximum request size (total size of all files in a request) spring.servlet.multipart.max-request-size=200MB + +server.tomcat.max-http-post-size=200000000 +# 200MB From 6a50620c24a8d794fba4f033da8b037221615a77 Mon Sep 17 00:00:00 2001 From: Debasish Chakraborty <117706910+debasishchakraborty-egovt@users.noreply.github.com> Date: Wed, 16 Oct 2024 15:47:23 +0530 Subject: [PATCH 3/3] Update application.properties --- .../egov-hrms/src/main/resources/application.properties | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/business-services/egov-hrms/src/main/resources/application.properties b/business-services/egov-hrms/src/main/resources/application.properties index 9a17ea2cc..c613156a5 100644 --- a/business-services/egov-hrms/src/main/resources/application.properties +++ b/business-services/egov-hrms/src/main/resources/application.properties @@ -128,11 +128,4 @@ log4j.logger.org.springframework.jdbc.core = TRACE state.level.tenant.id=pb sms.user.creation.enabled=true -# Maximum file size (for individual files) -spring.servlet.multipart.max-file-size=200MB - -# Maximum request size (total size of all files in a request) -spring.servlet.multipart.max-request-size=200MB - -server.tomcat.max-http-post-size=200000000 -# 200MB +server.tomcat.max-http-post-size=20MB