Hi,

There's currently no other way than to set ALLOW_OVERWRITE to true and
recompile
cocoon.

Someone may want to make this configurable from web.xml

Jeroen

----- Original Message -----
From: "Niket Anand" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 10, 2002 12:43 PM
Subject: upload file-overwrite permission(Waiting for reply...)


> Hello All,
> I am able to upload any file to /WEB-INF/work/image-dir directory as
> specified in web.xml file.
> If I want to upload same file again, it saves to directory with
1_image.gif
> name(it saves with new file name by appending 1_ before actual file name).
> I donot want to save it with new name but I want it to overwrite the
> previous saved file.
> How can I do this? as in CocoonServlet.java, it restrict the permission as
>  private static final boolean ALLOW_OVERWRITE = false;
>
> Please suggest any solution such that it can overwrite the file.
> Thanks,
> Niket
>
>
>
>
>
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.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/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to