Re: AW: AW: How to cancel upload?

2011-08-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Steffen, On 8/21/2011 9:21 AM, Steffen Heil (Mailinglisten) wrote: Hi Actually, I'm not entirely correct and I am now remembering this has been discussed before on either this list or the tomcat-dev list. Do you remember anything else about

AW: How to cancel upload?

2011-08-21 Thread Steffen Heil (Mailinglisten)
Hi Short question: How can I prevent tomcat to receive the complete post data? Stop sending the data before it's all been sent. Sorry, I don't understand what you mean. If you mean to send only small parts and only those that are wanted, that's nothing I can do. I need to support the

Re: AW: How to cancel upload?

2011-08-21 Thread Pid
On 21/08/2011 08:08, Steffen Heil (Mailinglisten) wrote: AFAIK Tomcat processes the request before the user code in a servlet is active, so you can't do it from inside a servlet. Hm. Tomcat does NOT parse these POST parameters (at least not by default and not in my case). I know for sure,

AW: AW: How to cancel upload?

2011-08-21 Thread Steffen Heil (Mailinglisten)
Hi Actually, I'm not entirely correct and I am now remembering this has been discussed before on either this list or the tomcat-dev list. Do you remember anything else about that thread? Something that might help me find it... ? Are you throwing an exception, or closing the inputstream? I

Re: How to cancel upload?

2011-08-20 Thread Pid
On 19/08/2011 14:37, Steffen Heil (Mailinglisten) wrote: Hi Short question: How can I prevent tomcat to receive the complete post data? Stop sending the data before it's all been sent. Long question: I have a servlet that uses apache commons fileupload to process incoming uploads using

How to cancel upload?

2011-08-19 Thread Steffen Heil (Mailinglisten)
Hi Short question: How can I prevent tomcat to receive the complete post data? Long question: I have a servlet that uses apache commons fileupload to process incoming uploads using the streaming api. Short version of the code: InputStream inputStream; try { ServletFileUpload upload =