Meaningless Drivel is fun!*
The moose likes Struts and the fly likes Maximum upload size of file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Maximum upload size of file" Watch "Maximum upload size of file" New topic

Maximum upload size of file

Neeraj jain
Ranch Hand

Joined: Jun 18, 2013
Posts: 88
I am uploading a file greater than 2mb ( default maximum size) by doing this


and getting an exception

SEVERE: Unable to parse request
org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (9591318) exceeds the configured maximum (2097152)

So please tell me how to achieve it

Karthik Jayachandran
Ranch Hand

Joined: Feb 18, 2009
Posts: 88

Edit your struts config xml file,

or in .properties file,

Change your maxSize value as desired.
I agree. Here's the link:
subject: Maximum upload size of file
Similar Threads
http 404 error in uploading the file
Struts 2 upload image problem
ModelDriver Interceptor + not getting my object
Struts 2 Fileupload problem
Null pointer Exception when insert new record to database using struts2 and hibernate3