File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 Spring in Action this week in the Spring 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: 104
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Maximum upload size of file