Error in loading file with same name in Alfresco
I am using below script for uploading a file in alfresco but it refuses to
create stating conflict.
"\n" + "http://www.w3.org/2005/Atom'
xmlns:app=\"http://www.w3.org/2007/app\"
xmlns:cmisra=\"http://docs.oasis-open.org/ns/cmis/restatom/200908/\"
xmlns:cmis=\"http://docs.oasis-open.org/ns/cmis/core/200908/\"
xmlns:alf=\"http://www.alfresco.org\">\n" + "" + fileName + "\n" + "" +
fileDescrption + "\n" + "" + author + "\n" + "" + encoder.encode(bytes) +
"\n" + "\n"+ "\n" + "\n"+ "D:hs:doc\n"+ "\n" +
"<cmis:propertyId
propertyDefinitionId=\"cmis:versionable\">\n"+
"<cmis:value>TRUE</cmis:value>\n"+
"</cmis:propertyId>\n" +
"</cmis:properties>\n" +
"</cmisra:object>\n" +
"</entry>\n";
Please let me know, how can i enable versioning using cmis rest .
Regards Garvit
No comments:
Post a Comment