public function PostFile::getCurlString

Get a cURL ready string for the upload

Return value

string

Overrides PostFileInterface::getCurlString

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Message/PostFile.php, line 95

Class

PostFile
POST file upload

Namespace

Guzzle\Http\Message

Code

public function getCurlString() {
  $disposition = ';filename=' . basename($this->filename);
  return $this->contentType ? '@' . $this->filename . ';type=' . $this->contentType . $disposition : '@' . $this->filename . $disposition;
}