Skip to content

Commit eac942d

Browse files
author
Robert Swarthout
authoredNov 17, 2016
Merge pull request #10 from compwright/curlfile
Fixup 70ad9d5
2 parents 0a5ee6d + 24c84f4 commit eac942d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/Sp_Api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ public function uploadPhotoFromPath($eventId, $filepath, $albumId = null)
389389
);
390390

391391
$photos = array(
392-
'photo' => '@' . $filepath,
392+
'photo' => new CURLFile($filepath),
393393
);
394394

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

0 commit comments

Comments
 (0)