jdolitsky / AppDotNetPHP

PHP library for the App.net Stream API
34 stars 19 forks source link

Update file handling for curl and php changes #57

Closed cdn closed 8 years ago

cdn commented 8 years ago

Complete set of lines changed down to line–ending adjustment by editor

Basically @jdolitsky :

$ diff -druw ../AppDotNetPHP/AppDotNet.php . --- ../AppDotNetPHP/AppDotNet.php 2015-07-09 17:15:53.000000000 +0100 +++ ./AppDotNet.php 2016-02-08 12:34:01.000000000 +0000 @@ -1603,7 +1603,7 @@ $public = true; }

// $data['content'] = "@$file;type=$mimeType"; $data['content'] = new CurlFile($file, $mimeType); return $this->httpReq('post-raw',$this->_baseUrl.'files', $data, 'multipart/form-data'); }