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/09 11:54:35 UTC

file-upload-overwrite permission

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: file-upload-overwrite permission

Posted by Vadim Gritsenko <va...@verizon.net>.
Niket Anand wrote:

>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;
>

1. Modify CocoonServlet to suit your needs, i.e. set

ALLOW_OVERWRITE = true;


2. File a bug into BugZilla that this parameter is fixed. Hopefully, 
somebody will get onto this issue sometime.

Vadim



>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>