This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Maximum upload size of file" Watch "Maximum upload size of file" New topic
Author

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

web.xml



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.
 
 
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