Page 1 of 1

Can't upload content to OpenKM repository

PostPosted:Thu Feb 03, 2011 1:12 am
by roycal93
I am trying to upload a document to the OpenKM repo, but when using the setContent method I got an error saying: "cannot set property of a checked-in node".
This is my code:
byte[] localFile = readFile("C:\\test.txt"); //readFile method converts the file to a byte array
documentService.setContent(token, "/okm:root/Proposals System/Base Components/test.txt", localFile);

The file is already on that location, we just need to push a new version of the document.

Any idea of what's going on? Or any idea about how to upload a new version of an existent document?

Thanks in advanced.

Re: Can't upload content to OpenKM repository

PostPosted:Thu Feb 03, 2011 7:39 am
by jllort
First you must doing a checkout, and then you can upgrade the version. You can not upgrade directly the version without making first a checkout of the document ( allows document can be edited by only one user ), that's the idea.

Re: Can't upload content to OpenKM repository

PostPosted:Mon Feb 07, 2011 3:47 pm
by roycal93
I forgot to tell you, it worked with that command you said. Thanks a lot!

Re: Can't upload content to OpenKM repository

PostPosted:Tue Jan 06, 2015 7:08 am
by sxandyzoe
No he podido encontrar el Add-on para MS Office 2013. Alguien sabe si está disponible y si no, cuándo estará?

Re: Can't upload content to OpenKM repository

PostPosted:Wed Jan 07, 2015 4:26 pm
by jllort
Please sxandyzoe do not merge several questions on same topic that create a lot of confusion to other reader ( you can find it here http://www.openkm.com/es/download-espanol.html and please for future question add new topic ).