1 2 3 4 5 6 |
javax.servlet.ServletException: 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 (447743) exceeds the configured maximum (128000) grails.plugin.cache.web.filter.AbstractFilter.logThrowable(AbstractFilter.java:116) grails.plugin.cache.web.filter.AbstractFilter.doFilter(AbstractFilter.java:70) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:101) |
ファイルアップロード後に上記のようなエラーがでた場合
application.yml に以下を追加する(1000000byte 約1MBまで許容する場合)
1 2 3 4 5 6 7 8 |
--- grails: controllers: upload: maxFileSize: 1000000 maxRequestSize: 1000000 |