bosspring 2 wrote:

Hi!!

I want upload files in a simple form, but I donīt know to modifie the upload-directory because I write "pfc/uploads" in the file web.xml and the form doesn't upload.

What is the configuration of the parameters in web.xml? I want to use pfc/uploads that upload-directory

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]



Reply via email to