Class File
Representation of a POST file.
- ICanBoogie\HTTP\File implements ICanBoogie\ToArray uses ICanBoogie\Accessor\AccessorTrait (not available)
Methods summary
public static
|
|
protected
string
|
|
protected
string
|
|
protected
string|null
|
|
protected
integer|false
|
|
protected
boolean
|
|
protected
string
|
|
protected
|
|
public
array
|
|
protected
string
|
|
protected
ICanBoogie\I18n\FormattedString|ICanBoogie\FormattedString|string|null
|
|
protected
string|null
|
|
protected
boolean
|
|
public
boolean
|
|
public
|
Constants summary
boolean |
MOVE_OVERWRITE
|
#
true
|
boolean |
MOVE_NO_OVERWRITE
|
#
false
|
Properties summary
protected
string
|
$name
Name of the file. |
|
protected
|
$type
|
|
protected
|
$size
|
|
protected
|
$tmp_name
|
|
protected
|
$error
|
|
protected
|
$pathname
|
Magic properties
public read-only
string
|
$name
Name of the file. |
public read-only
string
|
$type
MIME type of the file. |
public read-only
string
|
$size
Size of the file. |
public read-only
string
|
$error
Error code, one of |
public read-only
string
|
$error_message
A formatted message representing the error. |
public read-only
string
|
$pathname
Pathname of the file. |
public read-only
string
|
$extension
The extension of the file. If any, the dot is included e.g. ".zip". |
public read-only
string
|
$unsuffixed_name
The name of the file without its extension. |
public read-only
boolean
|
$is_uploaded
|
public read-only
boolean
|
$is_valid
|