Interface Guzzle\Http\Message\PostFileInterface

Implemented byGuzzle\Http\Message\PostFile

POST file upload

Public Methods

Hide inherited methods

MethodDescriptionDefined By
getContentType() Get the Content-Type of the file Guzzle\Http\Message\PostFileInterface
getCurlValue() Get a cURL ready string or CurlFile object for the upload Guzzle\Http\Message\PostFileInterface
getFieldName() Get the name of the field Guzzle\Http\Message\PostFileInterface
getFilename() Get the full path to the file Guzzle\Http\Message\PostFileInterface
getPostname() Get the post name of the file Guzzle\Http\Message\PostFileInterface
setContentType() Set the Content-Type of the file Guzzle\Http\Message\PostFileInterface
setFieldName() Set the name of the field Guzzle\Http\Message\PostFileInterface
setFilename() Set the path to the file Guzzle\Http\Message\PostFileInterface
setPostname() Set the post name of the file Guzzle\Http\Message\PostFileInterface

Method Details

getContentType() public abstract method

Get the Content-Type of the file

public abstract string getContentType ( )
getCurlValue() public abstract method

Get a cURL ready string or CurlFile object for the upload

public abstract string getCurlValue ( )
getFieldName() public abstract method

Get the name of the field

public abstract string getFieldName ( )
getFilename() public abstract method

Get the full path to the file

public abstract string getFilename ( )
getPostname() public abstract method

Get the post name of the file

public abstract string getPostname ( )
setContentType() public abstract method

Set the Content-Type of the file

public abstract self setContentType ( $type )
$type string

Content type

setFieldName() public abstract method

Set the name of the field

public abstract self setFieldName ( $name )
$name string

Field name

setFilename() public abstract method

Set the path to the file

public abstract self setFilename ( $path )
$path string

Full path to the file

throws Guzzle\Common\Exception\InvalidArgumentException

if the file cannot be read

setPostname() public abstract method

Set the post name of the file

public abstract self setPostname ( $name )
$name string

The new name of the file