This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Maximum upload size of file  RSS feed

 
Neeraj jain
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 93
Java Python Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Edit your struts config xml file,


or in .properties file,


Change your maxSize value as desired.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!