cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marco Rolappe" <>
Subject AW: input type="field"
Date Fri, 23 May 2003 12:09:01 GMT
hi lionel,

> -----Urspr√ľngliche Nachricht-----
> Von:
> []Im
> Auftrag von Lionel Crine
> Gesendet: Freitag, 23. Mai 2003 12:22
> An:
> Betreff: input type="field"
> Hi,
> I want to send some picture to a cocoon server from a client computer via
> an <input  type="file"> element in a form.
> The input element is a good way to do that ?

at least an easy way, I guess.

> Is there a generator which get the value from the input.

there is a generator (StreamGenerator) that does something similar for xml
files; it generates events from XML files POSTed to it.

> Is requestgenerator able to do that ?

no. the request generator generates an XML representation of the incoming

have a look at the StreamGenerator and the PostInputStream

I'd write a Reader that uses the PostInputStream to receive the content,
then saves that file and sends an according response (200 OK etc.).

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message