Re: [Cocoon 2.2] upload binary files

2008-03-10 Thread Joerg Heinicke
On 10.03.2008 02:54, Andy Stevens wrote: I might be wrong, but my guess is you are falling into the trap that uploaded files are deleted at the end of a request. Does this apply to 2.1.x as well? Yes, see CocoonServlet, RequestFactory, MultipartHttpServletRequest.cleanup() and

Re: [Cocoon 2.2] upload binary files

2008-03-10 Thread Joerg Heinicke
On 08.03.2008 13:14, Tobias Rübner wrote: You must save them yourself during the request processing. Here is a snippet of my servlet: The problem is I don't know how you integrated it into Cocoon. There is an API to access the files on a MultipartHttpServletRequest. In flowscript it

Re: [Cocoon 2.2] upload binary files

2008-03-10 Thread Tobias Rübner
Thanks for the help, Joerg. Now I integrate the file upload as a cocoon action with map:act in the sitemap pipeline. Now I can handle the uploaded file. Is this the prefered way, when I do not want to use flowscript? I am not sure, because this way uses the apache avalon framework, which as

Re: [Cocoon 2.2] upload binary files

2008-03-08 Thread Joerg Heinicke
I might be wrong, but my guess is you are falling into the trap that uploaded files are deleted at the end of a request. You must save them yourself during the request processing. I would not try to disable multipart filter. But if you can tell us what you actually want to do with the file it

Re: [Cocoon 2.2] upload binary files

2008-03-08 Thread Tobias Rübner
Thanks for the suggestions. You must save them yourself during the request processing. Here is a snippet of my servlet: public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String path = request.getParameter(file); //

[Cocoon 2.2] upload binary files

2008-03-07 Thread Tobias Rübner
Hello, I am building a webapp with cocoon 2.2. Currently I got stuck with the file upload. First I tried to work with a HTTP Servlet and apache.commons.FileUpload. But the MultipartHttpServletRequest changed the request and so there is no filedata to handle. The parameter named like the