diff --git a/src/Http/RequestBuilder.php b/src/Http/RequestBuilder.php index d2dcd9b..f808d41 100644 --- a/src/Http/RequestBuilder.php +++ b/src/Http/RequestBuilder.php @@ -39,6 +39,11 @@ public function send() curl_setopt($curl, CURLOPT_POSTFIELDS, $this->getData()); } + if ($this->getFileData()) { + curl_setopt($curl, CURLOPT_POST, true); + curl_setopt($curl, CURLOPT_POSTFIELDS, $this->getFileData()); + } + $data = curl_exec($curl); $info = curl_getinfo($curl);