commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jonathan MERCIER <jonathan06...@gmail.com>
Subject [fileupload] problem with big file in servletFileUpload.parseRequest(request)
Date Tue, 04 May 2010 17:08:04 GMT
hello, i have a problem with file upload and bigfile
i have set server xml as:
________________________________________________________________
...
<Connector port="8009" protocol="AJP/1.3" maxPostSize ="104857600"
redirectPort="8443" />
...
<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000"
maxPostSize ="104857600" redirectPort="8443" />
...
_________________________________________________________________

java code :
_________________________________________________________________
...
servletFileUpload.setSizeMax(-1);
servletFileUpload.setFileSizeMax(-1);

List fileItems  = servletFileUpload.parseRequest(request);
Iterator itr    = fileItems.iterator();

while (itr.hasNext())
{
...
}
...
_________________________________________________________________

with big file (10Mo) i enter never in while loop!!!!

thanks for help




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message