cancel
Showing results for 
Search instead for 
Did you mean: 

File overwrite for getAVMService().createFile() !!

power
Champ in-the-making
Champ in-the-making
Friendz,

I am using alfresco enterprise 3.1 WCM
while uploading file through webscript (external request) I can upload file e.g. (Test.doc)
when I am uploading again Test.doc it throws Child exist exception.

I am using : this.service.getAVMService().createFile(path, fileName, req.getContent().getInputStream(), null, null);
Do we have any parameter or argument to createFile method ?  for overwrite that file to overcome this above exception?

In short I need to overwrite this file.

Thanks,
1 REPLY 1

mrogers
Star Contributor
Star Contributor
You can't overwrite via the create method.  

For an existing node,  what you can do is set node properties or get a content writer and use it to change the contents of the node.