org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException
If you are using Struts2 Framework.
While Upload file normally you can upload below 2MB. If the file size exceeds more than 2MB. Then you will get this type of exception.
While Upload file normally you can upload below 2MB. If the file size exceeds more than 2MB. Then you will get this type of exception.
04-Feb-2016 15:42:41.141 INFO [http-nio-8084-exec-78]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.info
Unable to find 'struts.multipart.saveDir' property setting.
Defaulting to javax.servlet.context.tempdir
04-Feb-2016 15:42:41.203 WARNING [http-nio-8084-exec-78]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn
Request exceeded size limit!"
org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException:
the request was rejected because its size (2104281)
exceeds the configured maximum (2097152)
if you get this exception.
Open your Struts.xml file
<constant name = "struts.multipart.maxSize" value = "10000000" />
Update this line and save. You run the file and try to upload your file.
Then it will works good.
Comments
Post a Comment