public function EntityEnclosingRequestInterface::addPostFile

Add a POST file to the upload

Parameters

string $field POST field to use (e.g. file). Used to reference content from the server.:

string $filename Full path to the file. Do not include the @ symbol.:

string $contentType Optional Content-Type to add to the Content-Disposition.: Default behavior is to guess. Set to false to not specify.

Return value

EntityEnclosingRequestInterface

1 method overrides EntityEnclosingRequestInterface::addPostFile()
EntityEnclosingRequest::addPostFile in drupal/core/vendor/guzzle/http/Guzzle/Http/Message/EntityEnclosingRequest.php
Add a POST file to the upload

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Message/EntityEnclosingRequestInterface.php, line 116

Class

EntityEnclosingRequestInterface
HTTP request that sends an entity-body in the request message (POST, PUT)

Namespace

Guzzle\Http\Message

Code

public function addPostFile($field, $filename = null, $contentType = null);