basvandorst / StravaPHP

Strava API REST client with OAuth authentication
MIT License
184 stars 67 forks source link

curl post file #28

Closed arteq closed 7 years ago

arteq commented 7 years ago

The new/proper way to send files via curl is to call 'curl_file_create' on the file filed. I left the 'file_hack' with old @-prefix so PEST lib know to send the whole request as multipart - that's quick & dirty workaround.