protected function makeHeadersForUpload() { $delimiter = '-------------' . uniqid(); $this->buildFilePostData($delimiter); return ['Content-Type: multipart/form-data; boundary=' . $delimiter, 'Content-Length: ' . strlen($this->postFileData)]; }