i've seen the wiki pages and also the FileUploadAction in the Developer's Handbook (Moczar/Aston). my problem is that i don't want to put all the files into one directory but put them into the directory named after a project that is to be choosen in a select field (is that understandable?). there is a directory for every project and the file belongs to exactly one project. therefore the way suggested by alexander seemed quite appealing to me.
btw i need this for an app written in 2.0.4
thanx juliane
Geoff Howard wrote:
There is good information about this at the wiki. Go to wiki.cocoondev.org and search for upload.
Geoff
upload-directory does not have to be under WEB-INF - it can be relative or absolute anywhere on your system. relative paths are resolved from the servlet context - which is the main directory of cocoon.
Geoff
At 08:20 AM 6/23/2003, you wrote:
hello alexander,
does your offer still exist? seems this is exactly what i have to do next and you could save me some time ;-)
thanx a lot!
juliane
Alexander Schatten wrote:
well, I changed the parameter in the WEB-INF/web.xml:
<init-param> <param-name>upload-directory</param-name> <param-value>WEB-INF/work/upload-dir</param-value> </init-param>
and it works, but I am not sure, whether this directory has to be below WEB-INF?
however, one general remark: you must not forget, that this is a general setting for *all* Cocoon applications. So what I do is, that is set the directory as mentioned above, and in the cocoon application I use an XSP file to move an uploaded file into the projects destination directory, which seems to work pretty good and is rather easy to implement.
If you like, I could provide this XSP for you.
Alex
--------------------------------------------------------------------- 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]
--------------------------------------------------------------------- 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]