I\'ve got a cURL upload that fails after upgrading from PHP 5.5 to 5.6:
$aPost = array( \'file\' => \"@\".$localFile, \'default_file\' => \'htm
Just do following changes for PHP 5.5 or greater
Instead of "@" . $localFile just use new CurlFile($localFile)
"@" . $localFile
new CurlFile($localFile)
And set
curl_setopt($ch, CURLOPT_SAFE_UPLOAD, true);