jQuery in Action, 3rd edition
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: 108
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: 91

Edit your struts config xml file,

or in .properties file,

Change your maxSize value as desired.
I agree. Here's the link: http://aspose.com/file-tools
subject: Maximum upload size of file
It's not a secret anymore!