I am new to the struts2 framework.And first time doing file upload using struts2 framework.My requirement is to upload the number of files with no limit on file size.
When I am trying to add a file more then 10 MB it is giving me the exception
org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (15379388)
exceeds the configured maximum (10485760).
Try increase the file size(from 500000 to much greater) and post back if you get any error.
Never try to be a hard-worker. Be a smart-worker.
Joined: May 01, 2009
Sorry for the delay for replying .
I got the solution of the problem.
I increased the size as struts.multipart.maxSize=100485760 in struts.properties file By doing this file size limit is extended but at the same time I cannot have unlimited file size because
struts2 framework would not allow as it affects the performance .