Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Maximum upload size of file

 
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: 91
Android Java Spring
  • 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