diff --git a/lib/Sp_Api.php b/lib/Sp_Api.php index d381e41..abcaf67 100644 --- a/lib/Sp_Api.php +++ b/lib/Sp_Api.php @@ -389,7 +389,7 @@ public function uploadPhotoFromPath($eventId, $filepath, $albumId = null) ); $photos = array( - 'photo' => '@' . $filepath, + 'photo' => new CURLFile($filepath), ); return $this->_makeApiRequest($params, $photos);