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:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to