I am having an issue using the CURLFile object (curl_file_create
). I have tried a number of approaches, but no matter what I try, I end up getting a PHP Warning in
Eureka. The problem is using curl_setopt_array
. I was able to correct the issue like so:
//$curlOpts[CURLOPT_POSTFIELDS] = $postFields;
$log->UpdateDebugLog('Mailgun API Options', $curlOpts);
curl_setopt_array($curl, $curlOpts);
curl_setopt($curl, CURLOPT_POSTFIELDS, $postFields);
I didn't come across any documentation on this limitation with curl_setopt_array
, so I'm not sure if this was improper usage on my part or if this is an unknown bug.