java - FileUploadBase$SizeLimitExceededException : the request was rejected because its size (337867) exceeds the configured maximum (200)

标签 java file-upload struts2 tags

如何在 Struts 2 中处理自定义拦截器执行?

org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException: 
the request was rejected because its size (337867) exceeds the configured 
maximum (200)

最佳答案

设置此常量以增加请求限制

<constant name="struts.multipart.maxSize" value="1000000" />

Please remember that the struts.multipart.maxSize is the size limit of the whole request, which means when you uploading multiple files, the sum of their size must be below the struts.multipart.maxSize!

关于java - FileUploadBase$SizeLimitExceededException : the request was rejected because its size (337867) exceeds the configured maximum (200),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23428877/

相关文章:

java - 如何将 jFrame 添加到 Netbeans 中的主类中?

java - 使用 Java DSL 更改 CSV 输出分隔符

jsf - 当 p :fileUpload? 中的多个上传完成时

ruby - 使用纯 Ruby 脚本将进度上传到 S3

Struts2 输入值在调用拦截器时丢失

java - 我可以在 Struts 2 中直接使用 jquery.js 吗?

java.io.NotSerializableException::ObjectOutputStream: writeObject 方法

Java如何拆分arralyist并设置为单独的字符串或数组

php - 文件未上传并出现错误 "File is not uploaded please try again"?

java - 使用struts2创建包含表单和其他元素的jsp页面