Re: Upload/HTTP-Post-Request

2002-06-14 Thread Jeroen ter Voorde

You can't.

Nicola Ken suggested that the upload mechanism should be rewritten. I'm
willing to do
this (including some major speedups of the multipart parser) but i could use
some pointers how
to do this.

Jeroen

- Original Message -
From: Lutz Lenzen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 14, 2002 10:35 AM
Subject: Upload/HTTP-Post-Request



 Hi,

 I have a question about uploads.  When cocoon receives any
HTTP-post-request
 with an upload-file (multipar/form-data), the file is uploaded in the
 default-upload-dir even if the request causes a server-error (and no
pipeline
 is initiated). So it seems, that the upload is done by cocoon before any
 pipeline is initiated. How can I prevent the upload, or where can I
intervene
 and control the HTTP-Request.

 Thanks in advance

 Lutz
 --
 *
 Lutz Lenzen
 Institut fuer Reine und Angewandte
 Mathematik
 RWTH Aachen
 Templergraben 55
 52062 Aachen
 E-mail: [EMAIL PROTECTED]
 Tel.: 0241/80-94513 bzw.
030/314-22698
 *

 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:   [EMAIL PROTECTED]



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: Upload/HTTP-Post-Request

2002-06-14 Thread Nicola Ken Barozzi

Jeroen ter Voorde wrote:

 Nicola Ken suggested that the upload mechanism should be rewritten. I'm
 willing to do
 this (including some major speedups of the multipart parser) but i could use
 some pointers how
 to do this.

Well, here are some small pointers:
1- check out the upload component in jakarta-commons, it may be nice
2- remove the fixed dir from web.xml, and make that a param

Basically, you will see that the Request is created by wrapping the 
HttpServletRequest; there are RequestFactories in the components, and 
wrappers in environment.

Base yourself on real-life use cases and why you-others are having 
problems with the current version, and fix that :-)

-- 
Nicola Ken Barozzi   [EMAIL PROTECTED]
 - verba volant, scripta manent -
(discussions get forgotten, just code remains)
-


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]