Interface PostFileInterface
POST file upload
Direct known implementers
Methods summary
-
public
setFieldName ( string $name )
Set the name of the field
-
public
getFieldName ( )
Get the name of the field
-
public
setFilename ( string $path )
Set the path to the file
-
public
setPostname ( string $name )
Set the post name of the file
-
public
getFilename ( )
Get the full path to the file
-
public
getPostname ( )
Get the post name of the file
-
public
setContentType ( string $type )
Set the Content-Type of the file
-
public
getContentType ( )
Get the Content-Type of the file
-
public
getCurlValue ( )
Get a cURL ready string or CurlFile object for the upload
Methods detail
Set the name of the field
Parameters
- $name
string
$name Field name
Returns
Get the name of the field
Returns
string
Set the path to the file
Parameters
- $path
string
$path Full path to the file
Returns
Throws
Set the post name of the file
Parameters
- $name
string
$name The new name of the file
Returns
Get the full path to the file
Returns
string
Get the post name of the file
Returns
string
Set the Content-Type of the file
Parameters
- $type
string
$type Content type
Returns
Get the Content-Type of the file
Returns
string
Get a cURL ready string or CurlFile object for the upload
Returns
string