Class Guzzle\Http\Message\PostFile

InheritanceGuzzle\Http\Message\PostFile
ImplementsGuzzle\Http\Message\PostFileInterface

POST file upload

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
guessContentType() Determine the Content-Type of the file Guzzle\Http\Message\PostFile

Property Details

$contentType protected property
protected $contentType null
$fieldName protected property
protected $fieldName null
$filename protected property
protected $filename null
$postname protected property
protected $postname null

Method Details

__construct() public method

public void __construct ( $fieldName, $filename, $contentType null, $postname null )
$fieldName string

Name of the field

$filename string

Local path to the file

$contentType string

Content-Type of the upload

$postname string

Remote post file name

getContentType() public method

public void getContentType ( )
getCurlString() public method

public void getCurlString ( )
getCurlValue() public method

public void getCurlValue ( )
getFieldName() public method

public void getFieldName ( )
getFilename() public method

public void getFilename ( )
getPostname() public method

public void getPostname ( )
guessContentType() protected method

Determine the Content-Type of the file

protected void guessContentType ( )
setContentType() public method

public void setContentType ( $type )
$type
setFieldName() public method

public void setFieldName ( $name )
$name
setFilename() public method

public void setFilename ( $filename )
$filename
setPostname() public method

public void setPostname ( $postname )
$postname