\Guzzle\Http\MessagePostFile

POST file upload

Summary

Methods
Properties
Constants
__construct()
setFieldName()
getFieldName()
setFilename()
setPostname()
getFilename()
getPostname()
setContentType()
getContentType()
getCurlValue()
getCurlString()
No public properties found
No constants found
guessContentType()
$fieldName
$contentType
$filename
$postname
N/A
No private methods found
No private properties found
N/A

Properties

$fieldName

$fieldName : 

Type

$contentType

$contentType : 

Type

$filename

$filename : 

Type

$postname

$postname : 

Type

Methods

__construct()

__construct(string  $fieldName, string  $filename, string  $contentType = null, string  $postname = null) 

Parameters

string $fieldName

Name of the field

string $filename

Local path to the file

string $contentType

Content-Type of the upload

string $postname

Remote post file name

setFieldName()

setFieldName(string  $name) : self

Set the name of the field

Parameters

string $name

Field name

Returns

self

getFieldName()

getFieldName() : string

Get the name of the field

Returns

string

setFilename()

setFilename(  $filename) : self

Set the path to the file

Parameters

$filename

Returns

self

setPostname()

setPostname(  $postname) : self

Set the post name of the file

Parameters

$postname

Returns

self

getFilename()

getFilename() : string

Get the full path to the file

Returns

string

getPostname()

getPostname() : string

Get the post name of the file

Returns

string

setContentType()

setContentType(string  $type) : self

Set the Content-Type of the file

Parameters

string $type

Content type

Returns

self

getContentType()

getContentType() : string

Get the Content-Type of the file

Returns

string

getCurlValue()

getCurlValue() : string

Get a cURL ready string or CurlFile object for the upload

Returns

string

getCurlString()

getCurlString() 

guessContentType()

guessContentType() 

Determine the Content-Type of the file