You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Matthew Langham <ml...@sundn.de> on 2000/09/14 14:51:33 UTC

C2: Uploader needed

We need to integrate the possibility of uploading files into Cocoon and I
have been thinking about how best to do this - but then I thought hey -
maybe someone has already done this.

At the moment we are considering an "UploadTransformer" which would grab the
uploaded file from the HTTP stream and write that out to wherever..

Comments or "done that"s?

Matthew Langham

--
Open Source Group               sunShine - Lighting up e:Business
=================================================================
Matthew Langham, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
Tel: +49-5251-1581-30   [mlangham@sundn.de - http://www.sundn.de]
=================================================================



Re: C2: Uploader needed

Posted by Nicola Ken Barozzi <ni...@supereva.it>.
From: "Paul Russell" <pa...@luminas.co.uk>

> On Thu, Sep 14, 2000 at 02:51:33PM +0200, Matthew Langham wrote:
> > At the moment we are considering an "UploadTransformer" which would grab the
> > uploaded file from the HTTP stream and write that out to wherever..
> 
> Can't help thinking this should be part of the FP taglib...
> others?

Think so too, the principle is the same.

nicola_ken



Re: C2: Uploader needed

Posted by Stefano Mazzocchi <st...@apache.org>.
Jeremy Quinn wrote:
> 
> Thanks Neeme,
> 
> I think I found what you meant.
> 
> X-Mozilla-Status: 0009of the source code from Turbine in FP, what would be
> the "polite" way of doing it?
> 
> We should'nt expect people to download Turbine, just for this functionality?
> 
> I'd probably want to incorporate the modified Turbine source into FP.
> 
> Is this OK?

Yes, we already stole... ehmmm, "borrowed" the pool from turbine...
another piece shouldn't hurt :)

Don't take the whole turbine jar as a whole: it might create the
illusion you can mix Turbine and Cocoon, but this is clearly not the
case from this side of the fence.

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<st...@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------



Re: C2: Uploader needed

Posted by Stefano Mazzocchi <st...@apache.org>.
Jeremy Quinn wrote:
> 
> Thanks Neeme,
> 
> I think I found what you meant.
> 
> If I were to use some of the source code from Turbine in FP, what would be
> the "polite" way of doing it?
> 
> We should'nt expect people to download Turbine, just for this functionality?
> 
> I'd probably want to incorporate the modified Turbine source into FP.
> 
> Is this OK?

Yes, we already stole... ehmmm, "borrowed" the pool from turbine...
another piece shouldn't hurt :)

Don't take the whole turbine jar as a whole: it might create the
illusion you can mix Turbine and Cocoon, but this is clearly not the
case from this side of the fence.

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<st...@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------



Re: C2: Uploader needed

Posted by Stefano Mazzocchi <st...@apache.org>.
Neeme Praks wrote:
> 
> I think it would be "polite enough" if you would give the due credit to the
> authors of the code and let them know also that you included their code in
> FP...

Oh, I think that "not give due credit" was not even in consideration and
yes, letting them know doesn't hurt either.

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<st...@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------



RE: C2: Uploader needed

Posted by Jeremy Quinn <je...@media.demon.co.uk>.
At 16:01 +0200 17/09/00, Neeme Praks wrote:
>
>I think it would be "polite enough" if you would give the due credit to the
>authors of the code and let them know also that you included their code in
>FP...
>
>Neeme

cheers

Jeremy
-- 
   ___________________________________________________________________

   Jeremy Quinn                                           Karma Divers
                                                       webSpace Design
                                            HyperMedia Research Centre

   <ma...@mac.com>     		 <http://www.media.demon.co.uk>
    <phone:+44.[0].20.7737.6831>        <pa...@sms.genie.co.uk>

RE: C2: Uploader needed

Posted by Neeme Praks <ne...@one.lv>.
I think it would be "polite enough" if you would give the due credit to the
authors of the code and let them know also that you included their code in
FP...

Neeme

> -----Original Message-----
> From: Jeremy Quinn [mailto:jeremy@media.demon.co.uk]
> Sent: Sunday, September 17, 2000 1:25 PM
> To: cocoon-dev@xml.apache.org
> Subject: RE: C2: Uploader needed
>
>
>
> Thanks Neeme,
>
> I think I found what you meant.
>
> If I were to use some of the source code from Turbine in FP,
> what would be
> the "polite" way of doing it?
>
> We should'nt expect people to download Turbine, just for this
> functionality?
>
> I'd probably want to incorporate the modified Turbine source into FP.
>
> Is this OK?
>
> thanks
>
> regards Jeremy
>
>
>
> At 18:32 +0200 16/09/00, Neeme Praks wrote:
> >check out Turbine, it has three different implementations of this
> >functionality...
> >
> >> -----Original Message-----
> >> From: Jeremy Quinn [mailto:jeremy@media.demon.co.uk]
> >> Sent: Friday, September 15, 2000 10:43 AM
> >> To: cocoon-dev@xml.apache.org
> >> Subject: Re: C2: Uploader needed
> >>
> >> Good idea, I thought of this before, but was put off by my
> >> understanding
> >> that code for decoding uploaded files in the HTTP Request was
> >> not available
> >> in the open source.
>
>
> --
>    ___________________________________________________________________
>
>    Jeremy Quinn                                           Karma Divers
>                                                        webSpace Design
>                                             HyperMedia Research Centre
>
>    <ma...@mac.com>
<http://www.media.demon.co.uk>
    <phone:+44.[0].20.7737.6831>        <pa...@sms.genie.co.uk>


RE: C2: Uploader needed

Posted by Jeremy Quinn <je...@media.demon.co.uk>.
Thanks Neeme,

I think I found what you meant.

If I were to use some of the source code from Turbine in FP, what would be
the "polite" way of doing it?

We should'nt expect people to download Turbine, just for this functionality?

I'd probably want to incorporate the modified Turbine source into FP.

Is this OK?

thanks

regards Jeremy



At 18:32 +0200 16/09/00, Neeme Praks wrote:
>check out Turbine, it has three different implementations of this
>functionality...
>
>> -----Original Message-----
>> From: Jeremy Quinn [mailto:jeremy@media.demon.co.uk]
>> Sent: Friday, September 15, 2000 10:43 AM
>> To: cocoon-dev@xml.apache.org
>> Subject: Re: C2: Uploader needed
>>
>> Good idea, I thought of this before, but was put off by my
>> understanding
>> that code for decoding uploaded files in the HTTP Request was
>> not available
>> in the open source.


-- 
   ___________________________________________________________________

   Jeremy Quinn                                           Karma Divers
                                                       webSpace Design
                                            HyperMedia Research Centre

   <ma...@mac.com>     		 <http://www.media.demon.co.uk>
    <phone:+44.[0].20.7737.6831>        <pa...@sms.genie.co.uk>

RE: C2: Uploader needed

Posted by Neeme Praks <ne...@one.lv>.
check out Turbine, it has three different implementations of this
functionality...

> -----Original Message-----
> From: Jeremy Quinn [mailto:jeremy@media.demon.co.uk]
> Sent: Friday, September 15, 2000 10:43 AM
> To: cocoon-dev@xml.apache.org
> Subject: Re: C2: Uploader needed
>
>
> At 13:55 +0100 14/09/00, Paul Russell wrote:
> >On Thu, Sep 14, 2000 at 02:51:33PM +0200, Matthew Langham wrote:
> >> At the moment we are considering an "UploadTransformer"
> which would grab the
> >> uploaded file from the HTTP stream and write that out to wherever..
> >
> >Can't help thinking this should be part of the FP taglib...
> >others?
>
> Good idea, I thought of this before, but was put off by my
> understanding
> that code for decoding uploaded files in the HTTP Request was
> not available
> in the open source.
>
> Please correct me on this, point me to some code, and I'll include it.
>
> regards Jeremy
> --
>    ___________________________________________________________________
>
>    Jeremy Quinn                                           Karma Divers
>                                                        webSpace Design
>                                             HyperMedia Research Centre
>
>    <ma...@mac.com>
<http://www.media.demon.co.uk>
    <phone:+44.[0].20.7737.6831>        <pa...@sms.genie.co.uk>


Re: C2: Uploader needed

Posted by Jeremy Quinn <je...@media.demon.co.uk>.
At 13:55 +0100 14/09/00, Paul Russell wrote:
>On Thu, Sep 14, 2000 at 02:51:33PM +0200, Matthew Langham wrote:
>> At the moment we are considering an "UploadTransformer" which would grab the
>> uploaded file from the HTTP stream and write that out to wherever..
>
>Can't help thinking this should be part of the FP taglib...
>others?

Good idea, I thought of this before, but was put off by my understanding
that code for decoding uploaded files in the HTTP Request was not available
in the open source.

Please correct me on this, point me to some code, and I'll include it.

regards Jeremy
-- 
   ___________________________________________________________________

   Jeremy Quinn                                           Karma Divers
                                                       webSpace Design
                                            HyperMedia Research Centre

   <ma...@mac.com>     		 <http://www.media.demon.co.uk>
    <phone:+44.[0].20.7737.6831>        <pa...@sms.genie.co.uk>

RE: C2: Uploader needed

Posted by Per Kreipke <pe...@onclave.com>.
Sorry if this is a stupid question, but I can't find the FP taglib anywhere
in my C1 installation. Where can I find it?

Per.

> -----Original Message-----
> From: Paul Russell [mailto:paul@luminas.co.uk]
> Sent: Thursday, September 14, 2000 8:55 AM
> To: cocoon-dev@xml.apache.org
> Subject: Re: C2: Uploader needed
>
>
> On Thu, Sep 14, 2000 at 02:51:33PM +0200, Matthew Langham wrote:
> > At the moment we are considering an "UploadTransformer" which
> would grab the
> > uploaded file from the HTTP stream and write that out to wherever..
>
> Can't help thinking this should be part of the FP taglib...
> others?
>
>
> Paul
>
> --
> Paul Russell                               <pa...@luminas.co.uk>
> Technical Director,                   http://www.luminas.co.uk
> Luminas Ltd.
>


Re: C2: Uploader needed

Posted by Paul Russell <pa...@luminas.co.uk>.
On Thu, Sep 14, 2000 at 02:51:33PM +0200, Matthew Langham wrote:
> At the moment we are considering an "UploadTransformer" which would grab the
> uploaded file from the HTTP stream and write that out to wherever..

Can't help thinking this should be part of the FP taglib...
others?


Paul

-- 
Paul Russell                               <pa...@luminas.co.uk>
Technical Director,                   http://www.luminas.co.uk
Luminas Ltd.

RE: C2: Uploader needed

Posted by Per Kreipke <pe...@onclave.com>.
I was asking about something similar on the '[C2] Access Control Needed'
thread. Similar to upload of files would be the ability to input XML
document into the system from outside via POSTs. Specifically, I'm thinking
of having Cocoon handle XML-RPC requests.

XML-RPC uses a "text/xml" POST HTTP request to send a XML payload
(containing function name and params) to the server which then executes the
referenced function and ships back another XML payload containing the return
code/contents.

An example use of this is to add messages to discussion groups or posting
images, etc.

I asked in the other thread whether the sitemap would allow XML transforms
in the input direction. I didn't get a clear answer [or failed to understand
it :) ].

Would this be a similar transformer/whatever?

Per.

> -----Original Message-----
> From: Matthew Langham [mailto:mlangham@sundn.de]
> Sent: Thursday, September 14, 2000 8:52 AM
> To: cocoon-dev@xml.apache.org
> Subject: C2: Uploader needed
>
>
> We need to integrate the possibility of uploading files into Cocoon and I
> have been thinking about how best to do this - but then I thought hey -
> maybe someone has already done this.
>
> At the moment we are considering an "UploadTransformer" which
> would grab the
> uploaded file from the HTTP stream and write that out to wherever..
>
> Comments or "done that"s?
>
> Matthew Langham
>
> --
> Open Source Group               sunShine - Lighting up e:Business
> =================================================================
> Matthew Langham, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
> Tel: +49-5251-1581-30   [mlangham@sundn.de - http://www.sundn.de]
> =================================================================
>
>
>