You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Lutz Lenzen <le...@math.TU-Berlin.DE> on 2002/06/14 10:35:06 UTC

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: lenzen@iram.rwth-aachen.de
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: Upload/HTTP-Post-Request

Posted by Nicola Ken Barozzi <ni...@apache.org>.
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                   nicolaken@apache.org
             - 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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: Upload/HTTP-Post-Request

Posted by Jeroen ter Voorde <j....@home.nl>.
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" <le...@math.TU-Berlin.DE>
To: <co...@xml.apache.org>
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: lenzen@iram.rwth-aachen.de
> 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:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>
>


---------------------------------------------------------------------
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>