Page 1 of 1

Uploading Document

PostPosted:Tue Jul 13, 2010 6:18 am
by rohya
Hello Everybody...

I am Working on simple java program where i want to add document through web page and add to OpenKM.
i have import all classes which all are needed.. but still i m not able to add file...
which are compulsory fields needed to add file to OpenKM

I tried Following

Document newDoc = new Document();
code setProperties ......
OKMDocumentProxy docProx = new OKMDocumentProxy();
docProx.create(token,newDoc,myfile.getByteData());


What is permission ???
and how to set Path??

Re: Uploading Document

PostPosted:Wed Jul 14, 2010 10:20 am
by pavila
Which error is given? I should work. In OpenKM I have added a simplified method to add a document: createSimple(String docPath, byte[] content)