aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 83
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: 84

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
 
Similar Threads
ModelDriver Interceptor + not getting my object
Struts 2 upload image problem
http 404 error in uploading the file
Struts 2 Fileupload problem
Null pointer Exception when insert new record to database using struts2 and hibernate3