[EMAIL PROTECTED] wrote:

Hi !


I'm trying to use automatic upload with cocoon 2.0.3 (with jboss, jetty,
Linux red hat).
I've read that cocoon uploads the file and puts a FilePart object inside the
request.

So my question is :
How can I get this object inside my Java code ?

Cocoon uploads the file to a temporary directory and sets the name of the file as the corresponding request parameter value.

Example :
<input type="file" name="foo">

Java code :
File uploadedFile = new File(request.getParameter("foo"));

Hope this helps
Sylvain

--
Sylvain Wallez Anyware Technologies
http://www.apache.org/~sylvain http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }



---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>



Reply via email to