PHP 7.2 CURLFile Gives “Invalid Filename” Warning

╄→尐↘猪︶ㄣ 提交于 2019-12-02 09:55:16

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.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!