tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier ...@ice-sa.com>
Subject Re: Setting max file upload size
Date Wed, 29 Dec 2010 16:57:15 GMT
And if you are uploading this through a browser form, don't forget that the browser is 
probably going to encode that file in Base64 encoding, which will roughly inflate the size

by 1/3 of the original.
I don't know if Tomcat's maxPostSize counts the size prior, or after decoding.

Ronald Klop wrote:
> Set <Connector maxPostSize="<very large number>" /> in server.xml.
> 3 GB might be very large. I don't know if the value is a long or an int 
> in the internals of Tomcat.
> 
> This is from my live server.
> 
>    <Connector port="8080" maxHttpHeaderSize="8192"
>               maxThreads="300" minSpareThreads="25" maxSpareThreads="75"
>               enableLookups="false" redirectPort="8443" acceptCount="1024"
>               connectionTimeout="20000" disableUploadTimeout="true"
>               compression="on"
>               maxPostSize="104857600" />
> 
> Ronald.
> 
> Op woensdag, 29 december 2010 17:03 schreef Anjib Mulepati 
> <anjibcs@hotmail.com>:
>>
>>  
>> I am trying to upload the larger file through my app developed using 
>> Struts 1.3.8. I did change the config in struts to upload file upto 
>> 3GB but that doesn't work.
>> So now I am trying to find the configuration in Tomcat where I can set 
>> the max size for file upload.
>> Is there any?
>>
>> Anjib
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>>
>>
>>
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message