我用plupload上传视频,3.6M就报错
ERROR org.grails.web.errors.GrailsExceptionResolver - SizeLimitExceededException occurred when processing request:
the request was rejected because its size (3789624) exceeds the configured maximum (128000). Stacktrace follows
:
在application.yml文件中设置,格式如下:
grails:
controllers:
upload:
maxFileSize: 2000000
maxRequestSize: 2000000
不行啊大兄弟,还是报错>...<
ERROR org.grails.web.errors.GrailsExceptionResolver - SizeLimitExceededException occurred when processing request: [POST] /upload/box_tool_upload
the request was rejected because its size (3789624) exceeds the configured maximum (128000). Stacktrace follows:
org.springframework.web.multipart.MultipartException: Could not parse multipart servlet request; nested exception is java.lang.IllegalStateException: org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (3789624) exceeds the configured maximum (128000)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) ~[na:1.7.0_80]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) ~[na:1.7.0_80]
at java.lang.Thread.run(Thread.java:745) [na:1.7.0_80]
Caused by: java.lang.IllegalStateException: org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (3789624) exceeds the configured maximum (128000)
... 3 common frames omitted