Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Not able upload file of size greater than 1mb.  RSS feed

Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Team,

I am trying to upload a PDF file of size greater than 1mb(1.16mb) of size i have configured as below,

<bean id="multipartResolver"

<property name="maxUploadSize" value="10485760" />
  <property name="maxInMemorySize" value="1048576" />


But even after configuring I am getting an error as below,

Request processing failed; nested exception is org.springframework.web.multipart.MaxUploadSizeExceededException: Maximum upload size of 1000000 bytes exceeded; nested exception is org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (1220447) exceeds the configured maximum (1000000)

I am using tomcat 7 server.

Can anyone please suggest me on how to proceed further.

Thanks in Advance,

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!