Hi,
within your web.xml file you can change the
upload directory. It is passed as a parameter
to the Servlet. If you can even set absolute paths
i don't know.
HTH
Max
Here a snipet from my web.xml
....
<servlet>
<servlet-name>Cocoon2</servlet-name>
<display-name>Cocoon2</display-name>
<description>The main Cocoon2 servlet</description>
[... removed a lot of other init-param... ]
<init-param>
<param-name>upload-directory</param-name>
<param-value>/WEB-INF/upload-dir</param-value>
</init-param>
</servlet>
...
> -----Original Message-----
> From: tek [mailto:[EMAIL PROTECTED]]
> Sent: Mittwoch, 12. Dezember 2001 05:13
> To: [EMAIL PROTECTED]
> Subject: Re: C2 file upload problem
>
>
>
> hi,
> I can guess the problem:
>
> I've got the same symptoms if I access my upload-site via apache1.3 +
> mod_webapp. But if I request the site directly from tomcat
> (port 8080) the
> upload works perfectly.
>
> I know this in not the solution. Maybe anyone knows if it is
> possible to
> configure an upload-directory with an absolute path in
> web.xml. Thats what
> I want to try next to solve the problem.
>
> leo
>
> > Hi !
> >
> > I tried to upload file with cocoon example upload.xsp.
> > When i post request i got file with 1 byte length in upload
> directory.
> > Cocoon logs reports right size for request ... (C2rc1a,
> tomcat 4.0, w2k)
> >
> > May be someone can guess problem and help ?
> >
> > Thank you in advance,
> > Vladimir
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>