From cbfc8f188f5a033b66100292ad33f1c633eab9e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EA=B0=95=EC=84=9D?= Date: Wed, 5 Jan 2022 22:27:26 +0900 Subject: [PATCH] =?UTF-8?q?=EC=97=85=EB=A1=9C=EB=93=9C=20=EC=9A=A9?= =?UTF-8?q?=EB=9F=89=20=EC=A0=9C=ED=95=9C=20=ED=99=95=EC=9E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application-dev.properties | 4 ++-- src/main/resources/application-prod.properties | 4 ++-- src/main/resources/static/js/board/contentWrite.js | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/resources/application-dev.properties b/src/main/resources/application-dev.properties index 371fa95..4f4f2d4 100644 --- a/src/main/resources/application-dev.properties +++ b/src/main/resources/application-dev.properties @@ -1,8 +1,8 @@ spring.devtools.livereload.enabled=true #file upload size -spring.servlet.multipart.max-file-size=20MB -spring.servlet.multipart.max-request-size=100MB +spring.servlet.multipart.max-file-size=200MB +spring.servlet.multipart.max-request-size=500MB #thymeleaf spring.thymeleaf.prefix=classpath:templates/ diff --git a/src/main/resources/application-prod.properties b/src/main/resources/application-prod.properties index 0bf2ae4..4ece5ce 100644 --- a/src/main/resources/application-prod.properties +++ b/src/main/resources/application-prod.properties @@ -1,7 +1,7 @@ #file upload size -spring.servlet.multipart.max-file-size=20MB -spring.servlet.multipart.max-request-size=100MB +spring.servlet.multipart.max-file-size=200MB +spring.servlet.multipart.max-request-size=500MB #thymeleaf spring.thymeleaf.prefix=classpath:templates/ diff --git a/src/main/resources/static/js/board/contentWrite.js b/src/main/resources/static/js/board/contentWrite.js index 926f0ba..0535e7d 100644 --- a/src/main/resources/static/js/board/contentWrite.js +++ b/src/main/resources/static/js/board/contentWrite.js @@ -191,13 +191,13 @@ function contentCheck(){ for(const file of files) { if(!file.isDelete){ totalSize+=file.size; - if(file.size>20971520){ - alert("파일당 사이즈는 20MB을 넘길 수 없습니다.") + if(file.size>209715200){ + alert("파일당 사이즈는 200MB을 넘길 수 없습니다.") } } } - if(totalSize>104857600){ - alert("첨부파일의 용량 합은 100MB를 넘길 수 없습니다.") + if(totalSize>524288000){ + alert("첨부파일의 용량 합은 500MB를 넘길 수 없습니다.") } } return flag;