Commit 87966860 authored by Sean Chen's avatar Sean Chen

this should be key => value format.

parent 45ed4658
...@@ -184,7 +184,7 @@ class Curl extends Configurable implements AdapterInterface ...@@ -184,7 +184,7 @@ class Curl extends Configurable implements AdapterInterface
if ($request->getFileUpload()) { if ($request->getFileUpload()) {
if (version_compare(PHP_VERSION, '5.5.0') >= 0) { if (version_compare(PHP_VERSION, '5.5.0') >= 0) {
$curlFile = curl_file_create($request->getFileUpload()); $curlFile = curl_file_create($request->getFileUpload());
curl_setopt($handler, CURLOPT_POSTFIELDS, array('content', $curlFile)); curl_setopt($handler, CURLOPT_POSTFIELDS, array('content' => $curlFile));
} else { } else {
curl_setopt($handler, CURLOPT_POSTFIELDS, array('content' => '@'.$request->getFileUpload())); curl_setopt($handler, CURLOPT_POSTFIELDS, array('content' => '@'.$request->getFileUpload()));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment