cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From oceatoon <t.katelb...@systheo.com>
Subject Re: File upload ?
Date Thu, 05 May 2005 17:27:55 GMT
Fab Psycho wrote:

> Hi,
> 
>     I'd like to release some file upload from js flow.
> (I updated web.xml for file upload)
> 
> Does something like :
> 
> var myfile[];
> myfile=cocoon.request.getParameter("file")
> write(myfile, "filewritten");
The file is uploaded to your work directory in WEB-InF as you set in your
web.xml
in Flow you can retrieve with
loaddocument(path/form.getWidget().youruploadwidget.getValue().getFileName()) 
and then do waht you feel like move it , modify it ...

Tibor


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message