Skip to content

Commit

Permalink
Merge pull request #17 from spyrospph/TKT1
Browse files Browse the repository at this point in the history
TKT1 - fix curl on php 5.5.9+ versions
  • Loading branch information
sebest committed Sep 25, 2014
2 parents 2f31d92 + db789ee commit 04886c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CloudKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public function upload_file($file)
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_CONNECTTIMEOUT => 30,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => array('file' => '@' . $file),
CURLOPT_POSTFIELDS => array('file' => new \CURLFile($file)),
));

if ($this->proxy !== null)
Expand Down

0 comments on commit 04886c9

Please sign in to comment.