• Can't upload content to OpenKM repository

  • Do you want to create a native client or integrate with third party applications: webservices are the solution.
Do you want to create a native client or integrate with third party applications: webservices are the solution.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #8591  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.
 #8594  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.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.