client-php icon indicating copy to clipboard operation
client-php copied to clipboard

AddFile return error

Open amelsf opened this issue 5 years ago • 1 comments

Hi I'm trying to add a document to pipdrive but I have the following error: operation aborted by callback and i don't undestrand the error

My code

  $pipeDrive = $this->client;
 $files = $pipDrive->getFiles();
$collect['file'] = $pathfile ;  // public/uploads/filename.pdf =>
$collect['personalId'] = 1;
$files->addFile($collect);

Thank's for help

amelsf avatar Sep 16 '20 15:09 amelsf

I am also struggling with this.

Can you provide a code example of addFile where we start off with a path to a file and it is then multipart/form-data encoded please?

joffnerd avatar Nov 06 '20 19:11 joffnerd