title: Request size limitation when using MultipartHttpServletRequest of Spring 3.0
body: <p>I'd like to know what is the size limitation if I upload list of files in one client's form submition using HTTP multipart content type.
  On the server side I am using Spring's <code>MultipartHttpServletRequest</code> to handle the request.
  mM questions:</p>
  
  <ol>
  <li>Is there should be different file size limitation and total request size limitation or file size is the only limitation and the request is capable of uploading 100s of files as lonng as they are not too large.</li>
  <li>Doest the Spring request wrapper read the complete request and store it in the JAVA heap memory or it store temporaray files of it to be able to use big quota.</li>
  <li>Is the use of reading the httpservlet request in streaming would change the size limitation than using complete http request read at-once by the application server.</li>
  <li>What is the bottleneck of this process - Java heap size, the quota of the filesystem on which my web-server runs, the maximum allowed BLOB size that the DataBase in which I am gonna save the file alows? or Spring internal limitations?</li>
  </ol>
  
  <p>Related threads that still don't have exact answer to this:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/4546808/does-spring-framework-support-streaming-mode-in-mutlipart-requests">does-spring-framework-support-streaming-mode-in-mutlipart-requests</a></li>
  <li><a href="https://stackoverflow.com/questions/1836760/is-there-a-way-to-get-raw-http-request-stream-from-java-servlet-handler">is-there-a-way-to-get-raw-http-request-stream-from-java-servlet-handler</a>   </li>
  <li><a href="https://stackoverflow.com/questions/4528778/how-to-drop-body-of-a-request-after-checking-headers-in-servlet">how-to-  drop-body-of-a-request-after-checking-headers-in-servlet</a></li>
  <li><a href="https://stackoverflow.com/questions/4451466/apache-commons-fileupload-throws-malformedstreamexception">apache-commons-fileupload-throws-malformedstreamexception</a></li>
  </ul>