02-10-2012, 06:23 PM
(02-10-2012, 03:45 PM)michbukana Wrote: Thanks for the answer,
I try to use the Folder::addDocument function but an error ocurred. I don't know how to use this function, param $dest is the folder to add the new copy file and param $document, the file to copy.
$_tmpFile value is incorrect.
In the function call I write:
PHP Code:$res = $dest->addDocument($_fileName, '', 0, 'Administrator', '', $_tmpFile, $_originalName, $_fileType, $_mimeType, $_sequence, $reviewers=array(), $approvers=array(),$_reqversion,$version_comment='');
You should have a look at the function addDocument() in the source. The owner is not string but a user object.
Uwe