Re: How to prevent/abort the processing of the multipart request body?

2011-03-16 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 3/14/2011 11:19 AM, André Warnier wrote: Mark Thomas wrote: On 14/03/2011 14:41, André Warnier wrote: It still seems to leave open the question as to what the size limit of a MultiPart upload means exactly.

How to prevent/abort the processing of the multipart request body?

2011-03-14 Thread Attila Király
Hi, I have the following situation: a html page contains a multipart form with a file typed input field. User submits the form. I can decide not to parse the multipart body at all on the server side in a filter (because the request is too large based on the content-length header sent by the UA).

Re: How to prevent/abort the processing of the multipart request body?

2011-03-14 Thread André Warnier
Attila Király wrote: Hi, I have the following situation: a html page contains a multipart form with a file typed input field. User submits the form. I can decide not to parse the multipart body at all on the server side in a filter (because the request is too large based on the content-length

Re: How to prevent/abort the processing of the multipart request body?

2011-03-14 Thread Mark Thomas
On 14/03/2011 11:01, André Warnier wrote: Maybe have a look here : http://tomcat.apache.org/tomcat-6.0-doc/config/http.html#Common_Attributes attribute maxPostSize Nope. That doesn't apply to multi-part forms since Tomcat doesn't do the parameter parsing. You want Tomcat 7.0.11 and

Re: How to prevent/abort the processing of the multipart request body?

2011-03-14 Thread Attila Király
Thanks for the info! With swallowAbortedUploads browsers (I tried Chrome10, Fox3.6, IE9, Opera11) broke (showed a network error message about aborted connection). They except to fully write the request before reading the response. Too bad. :( But I think that can still be combined with ajax

Re: How to prevent/abort the processing of the multipart request body?

2011-03-14 Thread André Warnier
Mark Thomas wrote: On 14/03/2011 11:01, André Warnier wrote: Maybe have a look here : http://tomcat.apache.org/tomcat-6.0-doc/config/http.html#Common_Attributes attribute maxPostSize Nope. That doesn't apply to multi-part forms since Tomcat doesn't do the parameter parsing. You want Tomcat

Re: How to prevent/abort the processing of the multipart request body?

2011-03-14 Thread Mark Thomas
On 14/03/2011 14:41, André Warnier wrote: It still seems to leave open the question as to what the size limit of a MultiPart upload means exactly. That is defined by the Servlet 3.0 specification. Under Tomcat 7, is this the maxPostSize even for multipart POSTs, or is this settable

Re: How to prevent/abort the processing of the multipart request body?

2011-03-14 Thread André Warnier
Mark Thomas wrote: On 14/03/2011 14:41, André Warnier wrote: It still seems to leave open the question as to what the size limit of a MultiPart upload means exactly. That is defined by the Servlet 3.0 specification. Is it ? (I couldn't find it there)

Re: How to prevent/abort the processing of the multipart request body?

2011-03-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 3/14/2011 10:47 AM, Mark Thomas wrote: On 14/03/2011 14:41, André Warnier wrote: It still seems to leave open the question as to what the size limit of a MultiPart upload means exactly. That is defined by the Servlet 3.0 specification.

Re: How to prevent/abort the processing of the multipart request body?

2011-03-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 3/14/2011 11:19 AM, André Warnier wrote: Mark Thomas wrote: On 14/03/2011 14:41, André Warnier wrote: It still seems to leave open the question as to what the size limit of a MultiPart upload means exactly. That is defined by the

Re: How to prevent/abort the processing of the multipart request body?

2011-03-14 Thread markt
Christopher Schultz ch...@christopherschultz.net wrote: If there is no request content-length, is the amount of data uploaded to the server ever checked against this same limit? Yes, but Tomcat has to count the bytes as they are uploaded so the connection is dropped later. Mark

Re: How to prevent/abort the processing of the multipart request body?

2011-03-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 3/14/2011 5:01 PM, ma...@apache.org wrote: Christopher Schultz ch...@christopherschultz.net wrote: If there is no request content-length, is the amount of data uploaded to the server ever checked against this same limit? Yes, but