Request size limitation when using MultipartHttpServletRequest of Spring 3.0
- by Spiderman
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 MultipartHttpServletRequest to handle the request.
mM questions:
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.
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.
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.
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?
Related threads that still don't have exact answer to this:
does-spring-framework-support-streaming-mode-in-mutlipart-requests
is-there-a-way-to-get-raw-http-request-stream-from-java-servlet-handler
how-to- drop-body-of-a-request-after-checking-headers-in-servlet
apache-commons-fileupload-throws-malformedstreamexception