I just finally got a second to look at the code, and my vague memory was right. During a security related refactoring of the upload code before 2.1M1 (U2/MLK fans may be interested to know it was early morning, April 4 by complete coincidence) an unconfigurable (means it can't be turned off) step was added to the CocoonServlet at the end of the request processing which automatically removes the temporary files saved during the upload process when autosave-uploads is set to true. Until that point, it was possible to set the upload directory to the final desired location of the uploads. By design, this is no longer possible. Either from flow script or an Action, the application programmer must move the file if they desire it to persist past the end of the request.
I've just now added a brief debugging statement to the servlet mentioning the multipart cleanup.
And now I've started some improvements at the wiki: http://wiki.cocoondev.org/Wiki.jsp?page=FileUploadsWithCocoon2.1
Geoff
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
