dan-coulter / phpflickr

PHP Wrapper for the Flickr API
GNU General Public License v2.0
207 stars 128 forks source link

Issues with $args and curl_setopt #27

Closed playcat closed 2 years ago

playcat commented 10 years ago

Hi,

In both sync and async uploads I had issues with error of conversion of array -> string. Turns out that $args had to be converted (encoded) to string. http_build_query did the job but gave me a lot of headache - first saying signature is not good and then not uploading the photos (after I included photo in the image, even though this isn't allowed - i was desperate).

anyways, it turns out that using curl_setopt_array fixed everything. So: curl_setopt_array($curl, array(CURLOPT_POSTFIELDS => $args));

Hope it helps

audas commented 10 years ago

I just removed the auth_token from inside the array it was in.