Просмотр исходного кода

spring.http.multipart.max-file-size=50Mb

deason 6 лет назад
Родитель
Сommit
e283a1170f

+ 2 - 0
src/main/resources/application-dev.properties

@@ -5,6 +5,8 @@ server.tomcat.uri-encoding=UTF-8
 spring.freemarker.request-context-attribute=request
 spring.freemarker.settings.number_format=#
 spring.freemarker.suffix=.ftl
+spring.http.multipart.max-file-size=50Mb
+spring.http.multipart.max-request-size=50Mb
 # logs config
 logging.file=logs/examcloud-app-api.txt
 logging.level.org.springframework=WARN

+ 2 - 0
src/main/resources/application-prod.properties

@@ -5,6 +5,8 @@ server.tomcat.uri-encoding=UTF-8
 spring.freemarker.request-context-attribute=request
 spring.freemarker.settings.number_format=#
 spring.freemarker.suffix=.ftl
+spring.http.multipart.max-file-size=50Mb
+spring.http.multipart.max-request-size=50Mb
 # logs config
 logging.file=logs/examcloud-app-api.txt
 logging.level.org.springframework=WARN

+ 2 - 0
src/main/resources/application-test.properties

@@ -5,6 +5,8 @@ server.tomcat.uri-encoding=UTF-8
 spring.freemarker.request-context-attribute=request
 spring.freemarker.settings.number_format=#
 spring.freemarker.suffix=.ftl
+spring.http.multipart.max-file-size=50Mb
+spring.http.multipart.max-request-size=50Mb
 # logs config
 logging.file=logs/examcloud-app-api.txt
 logging.level.org.springframework=WARN

+ 1 - 1
src/main/resources/static/upload.html

@@ -16,7 +16,7 @@
         var formData = new FormData($('#uploadForm')[0]);
         formData.append('examRecordId', '101262');
         $.ajax({
-            url: 'http://localhost:8081/api/v1/exam/offline/paper/answer/upload',
+            url: 'http://localhost:8090/api/v1/exam/offline/paper/answer/upload',
             type: "POST",
             data: formData,
             headers: {