Open Journal Systems  3.3.0
Guzzle\Http\Message\PostFileInterface Interface Reference
Inheritance diagram for Guzzle\Http\Message\PostFileInterface:
Guzzle\Http\Message\PostFile

Public Member Functions

 getContentType ()
 
 getCurlValue ()
 
 getFieldName ()
 
 getFilename ()
 
 getPostname ()
 
 setContentType ($type)
 
 setFieldName ($name)
 
 setFilename ($path)
 
 setPostname ($name)
 

Detailed Description

POST file upload

Definition at line 10 of file PostFileInterface.php.

Member Function Documentation

◆ getContentType()

Guzzle\Http\Message\PostFileInterface::getContentType ( )

Get the Content-Type of the file

Returns
string

Implemented in Guzzle\Http\Message\PostFile.

◆ getCurlValue()

Guzzle\Http\Message\PostFileInterface::getCurlValue ( )

Get a cURL ready string or CurlFile object for the upload

Returns
string

Implemented in Guzzle\Http\Message\PostFile.

◆ getFieldName()

Guzzle\Http\Message\PostFileInterface::getFieldName ( )

Get the name of the field

Returns
string

Implemented in Guzzle\Http\Message\PostFile.

◆ getFilename()

Guzzle\Http\Message\PostFileInterface::getFilename ( )

Get the full path to the file

Returns
string

Implemented in Guzzle\Http\Message\PostFile.

◆ getPostname()

Guzzle\Http\Message\PostFileInterface::getPostname ( )

Get the post name of the file

Returns
string

Implemented in Guzzle\Http\Message\PostFile.

◆ setContentType()

Guzzle\Http\Message\PostFileInterface::setContentType (   $type)

Set the Content-Type of the file

Parameters
string$typeContent type
Returns
self

Implemented in Guzzle\Http\Message\PostFile.

◆ setFieldName()

Guzzle\Http\Message\PostFileInterface::setFieldName (   $name)

Set the name of the field

Parameters
string$nameField name
Returns
self

Implemented in Guzzle\Http\Message\PostFile.

◆ setFilename()

Guzzle\Http\Message\PostFileInterface::setFilename (   $path)

Set the path to the file

Parameters
string$pathFull path to the file
Returns
self
Exceptions
InvalidArgumentExceptionif the file cannot be read

Implemented in Guzzle\Http\Message\PostFile.

◆ setPostname()

Guzzle\Http\Message\PostFileInterface::setPostname (   $name)

Set the post name of the file

Parameters
string$nameThe new name of the file
Returns
self

Implemented in Guzzle\Http\Message\PostFile.


The documentation for this interface was generated from the following file: