Closed stephanvierkant closed 8 years ago
Let me have a look...
I am getting this error You need to be authorized to make this request
, looks like it's a Pipedrive Error. Have just notified them, will get back to you.
Commit e8800a419afc0fe26fd3b2a4403a4120b2307082 should fix the issue, have to apologise, I did not implement this part. I have been playing and it should work...
Have just tagged 0.3.0, so update to that version and:
$file = new \SplFileInfo('file.jpg');
$pipedrive->files->add([
'file' => $file,
'person_id' => 1
]);
Will include this into the docs soon.
Let me know if everything was ok.
It's not working for me, unfortunately. I'm getting a 400 error from Pipedrive.
Info from Response: content.error: An error occurred while saving the file. content.error_info: Please check developers.pipedrive.com for more information about Pipedrive API. content.data.error_code: unknown_error
What kind of file are you trying to save? I got that error when saving a .php
file, but it was obvious.
Have just checked, I've got that error when uploading a .md
file. However I have no problem uploading a .jpg
file...
Even with PDF and JPG it's not working for me.
Could you email me one of those files to ai.ortuno at gmail.com?
Thanks, this time it was my fault. Thanks for helping!
I can't get the file upload working. I'm not sure it's an issue with the library, maybe I'm doing something wrong. If so, I'm sorry ;)
This throws a
PipedriveException
: 'No files were provided with the request.'.What's going wrong?