Skip to content

Commit

Permalink
Merge pull request #10 from compwright/curlfile
Browse files Browse the repository at this point in the history
Fixup 70ad9d5
  • Loading branch information
Robert Swarthout authored Nov 17, 2016
2 parents 0a5ee6d + 24c84f4 commit eac942d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Sp_Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ public function uploadPhotoFromPath($eventId, $filepath, $albumId = null)
);

$photos = array(
'photo' => '@' . $filepath,
'photo' => new CURLFile($filepath),
);

return $this->_makeApiRequest($params, $photos);
Expand Down

0 comments on commit eac942d

Please sign in to comment.