-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
"As of PHP 5.6 @$filePath will not work in CURLOPT_POSTFIELDS without CURLOPT_SAFE_UPLOAD being set and it is completely removed in PHP 7."
https://stackoverflow.com/questions/21905942/posting-raw-image-data-as-multipart-form-data-in-curl
The solution is to rewrite line 45 in vendor/activecollab/activecollab-sdk/ActiveCollab/Connectors/Curl.php:
// $post_data['attachment_' . $counter++] = '@' . $file . ';type=application/octet-stream';
$post_data['attachment_' . $counter++] = new \CURLFile($file, mime_content_type($file));
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels