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;