What I want to do is the same thing as on the wiki site. but with a generator.

Precisely :

Put the java code in the "act" method of the upload class into my custom generator class.

I want that the because I need to get the upload file into SAX events.
Oh .... I'm thinking about StreamGenerator which can do this for me...


So stupid question ...Sorry.


Lionel

At 09:00 08/09/2003 -0400, you wrote:
Lionel Crine wrote:
Hi,
I'm using cocoon 2.1 and I'm wonder if I can upload a file from an <input type="file" ...> using a generatro instead of an action ?

Can you explain why you would want to? Make sure you read up on the wiki about file uploads in Cocoon by the way. Cocoon has already handled the upload for you (if configured to do so in web.xml). So all you have to do is act on that file (save it somewhere permanent, for example).


Geoff


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


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



Reply via email to