Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to copy documents?
#4
(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
Reply


Messages In This Thread
How to copy documents? - by michbukana - 02-09-2012, 04:11 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)