Interface PostFileInterface
POST file upload
Direct known implementers
Methods summary
-
publicsetFieldName ( string $name )Set the name of the field
-
publicgetFieldName ( )Get the name of the field
-
publicsetFilename ( string $path )Set the path to the file
-
publicsetPostname ( string $name )Set the post name of the file
-
publicgetFilename ( )Get the full path to the file
-
publicgetPostname ( )Get the post name of the file
-
publicsetContentType ( string $type )Set the Content-Type of the file
-
publicgetContentType ( )Get the Content-Type of the file
-
publicgetCurlValue ( )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
stringSet 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
stringGet the post name of the file
Returns
stringSet the Content-Type of the file
Parameters
- $type
string
$type Content type
Returns
Get the Content-Type of the file
Returns
stringGet a cURL ready string or CurlFile object for the upload
Returns
string