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));
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