UploadedFile
extends File
in package
Tags
Table of Contents
Constants
- UPLOAD_ERR_CANT_WRITE = 7
- UPLOAD_ERR_EXTENSION = 8
- UPLOAD_ERR_FORM_SIZE = 2
- UPLOAD_ERR_INI_SIZE = 1
- UPLOAD_ERR_NO_FILE = 4
- UPLOAD_ERR_NO_TMP_DIR = 6
- UPLOAD_ERR_OK = 0
- UPLOAD_ERR_PARTIAL = 3
Properties
- $error : int
- $extension : string
- $height : int
- $name : string
- $path : string
- $size : int
- $tmp_name : string
- $type : string
- $width : int
- $files : mixed
- $hashCode : int
- $hashCounter : int
Methods
- __call() : mixed
- __callStatic() : mixed
- __destruct() : mixed
- __get() : mixed
- extends() : bool
- get() : UploadedFile|array<string|int, mixed>|null
- getError() : int
- getErrorMessage() : string
- getErrorMessageFromCode() : mixed
- getExtension() : string
- getHeight() : int
- getName() : string
- getPath() : string
- getReflection() : ReflectionClass
- getSize() : int
- getTmpName() : string
- getType() : string
- getWidth() : int
- __construct() : mixed
- init() : mixed
- toUploadedFile() : mixed
Constants
UPLOAD_ERR_CANT_WRITE
public
int
UPLOAD_ERR_CANT_WRITE
= 7
UPLOAD_ERR_EXTENSION
public
int
UPLOAD_ERR_EXTENSION
= 8
UPLOAD_ERR_FORM_SIZE
public
int
UPLOAD_ERR_FORM_SIZE
= 2
UPLOAD_ERR_INI_SIZE
public
int
UPLOAD_ERR_INI_SIZE
= 1
UPLOAD_ERR_NO_FILE
public
int
UPLOAD_ERR_NO_FILE
= 4
UPLOAD_ERR_NO_TMP_DIR
public
int
UPLOAD_ERR_NO_TMP_DIR
= 6
UPLOAD_ERR_OK
public
int
UPLOAD_ERR_OK
= 0
UPLOAD_ERR_PARTIAL
public
int
UPLOAD_ERR_PARTIAL
= 3
Properties
$error
protected
int
$error
$extension
protected
string
$extension
$height
protected
int
$height
= 0
$name
protected
string
$name
$path
protected
string
$path
$size
protected
int
$size
= 0
$tmp_name
protected
string
$tmp_name
$type
protected
string
$type
$width
protected
int
$width
= 0
$files
private
static mixed
$files
= []
$hashCode
private
int
$hashCode
$hashCounter
private
static int
$hashCounter
= 0
Methods
__call()
public
__call(string $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : string
- $arguments : array<string|int, mixed>
Tags
__callStatic()
public
static __callStatic(mixed $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : mixed
- $arguments : array<string|int, mixed>
__destruct()
public
__destruct() : mixed
__get()
public
__get(string $property) : mixed
Parameters
- $property : string
extends()
public
extends(ReflectionClass $reflector) : bool
Parameters
- $reflector : ReflectionClass
Return values
boolget()
public
static get(string $input_name) : UploadedFile|array<string|int, mixed>|null
Parameters
- $input_name : string
Return values
UploadedFile|array<string|int, mixed>|nullgetError()
public
getError() : int
Return values
intgetErrorMessage()
public
getErrorMessage() : string
Return values
stringgetErrorMessageFromCode()
public
static getErrorMessageFromCode(int $code) : mixed
Parameters
- $code : int
getExtension()
public
getExtension() : string
Return values
stringgetHeight()
public
getHeight() : int
Tags
Return values
intgetName()
public
getName() : string
Tags
Return values
stringgetPath()
public
getPath() : string
Tags
Return values
stringgetReflection()
public
getReflection() : ReflectionClass
Return values
ReflectionClassgetSize()
public
getSize() : int
Return values
intgetTmpName()
public
getTmpName() : string
Return values
stringgetType()
public
getType() : string
Tags
Return values
stringgetWidth()
public
getWidth() : int
Tags
Return values
int__construct()
protected
__construct(string $name, string $type, string $extension, string $tmp_name, string $error, string $size) : mixed
Parameters
- $name : string
- $type : string
- $extension : string
- $tmp_name : string
- $error : string
- $size : string
init()
protected
init() : mixed
toUploadedFile()
private
static toUploadedFile(array<string|int, mixed> &$array) : mixed
Parameters
- $array : array<string|int, mixed>