You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ronald Klop <ro...@base.nl> on 2004/06/02 13:33:34 UTC

maxPostSize and file upload

Hello,
 
Does the maxPostSize setting for the Connector in server.xml affect the max. size of a file upload?
 
Ronald.
 

Re: maxPostSize and file upload

Posted by Ronald Klop <ro...@base.nl>.
After rereading the docs I understand that the maxPostSize if for FORM URL parameter passing.
I think they mean the parameters in the form key1=val2&key2=val2&... So it is not for file upload I think, only for regular posts.
Unfortunately I don't have time to look in the source, but if somebody knows about this maybe the docs can be updated to be more verbose about this.
 
Ronald.
 
On Wed Jun 02 15:44:24 CEST 2004 Veniamin Fichin <3c...@mail.ru> wrote:


 
Ronald Klop wrote:

>Is it possible that this does not work?
>The docs
>(http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/ajp.html) say
>that the default is 2MB, but I can download much larger files.
>Is this a bug or a feature?

Don't know, I never used it. Additionally, I have no ajp.html file
in my Tomcat-5.0.16 distribution, that's strange, 'cause online site has
it. Try to set maxPostSize to 2Mb explicitlyto see if it will work.
It was a long time ago when I read one article on PHP file upload
where it was said that you can't determine a size of uploading data
before it at least reaches defined limit, furthermore an error only
arised when upload is finished regardless of its actual size (will it be
100Mb or even 100Gb). But I may be wrong.


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



Re: maxPostSize and file upload

Posted by Veniamin Fichin <3c...@mail.ru>.
Ronald Klop wrote:

> Is it possible that this does not work?
> The docs 
> (http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/ajp.html) say 
> that the default is 2MB, but I can download much larger files.
> Is this a bug or a feature?

    Don't know, I never used it. Additionally, I have no ajp.html file 
in my Tomcat-5.0.16 distribution, that's strange, 'cause online site has 
it. Try to set maxPostSize to 2Mb explicitlyto see if it will work.
    It was a long time ago when I read one article on PHP file upload 
where it was said that you can't determine a size of uploading data 
before it at least reaches defined limit, furthermore an error only 
arised when upload is finished regardless of its actual size (will it be 
100Mb or even 100Gb). But I may be wrong.


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


Re: maxPostSize and file upload

Posted by Ronald Klop <ro...@base.nl>.
Is it possible that this does not work?
The docs (http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/ajp.html) say that the default is 2MB, but I can download much larger files.
Is this a bug or a feature?
By the way: I upload using commons-fileupload.
 
Ronald.
 
On Wed Jun 02 14:04:45 CEST 2004 Veniamin Fichin <3c...@mail.ru> wrote:


 
Ronald Klop wrote:

>Does the maxPostSize setting for the Connector in server.xml affect the
>max. size of a file upload?

Since file upload occurs with POST method, yes it restricts upload
file size.


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



Re: maxPostSize and file upload

Posted by Veniamin Fichin <3c...@mail.ru>.
Ronald Klop wrote:

> Does the maxPostSize setting for the Connector in server.xml affect the 
> max. size of a file upload?

    Since file upload occurs with POST method, yes it restricts upload 
file size.


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