You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Niket Anand <ni...@npi.stpn.soft.net> on 2002/09/10 12:43:31 UTC
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: upload file-overwrite permission(Waiting for reply...)
Posted by Jeroen ter Voorde <j....@home.nl>.
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" <ni...@npi.stpn.soft.net>
To: <co...@xml.apache.org>
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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>