Cloneable
Instantiable
-
Implements
Psr\Http\Message\UploadedFileInterface
Methods |
public
__construct
(
$streamOrFile
,
?
int
$size
,
int
$errorStatus
,
?
string
$clientFilename
=
NULL
,
?
string
$clientMediaType
=
NULL
)
|
public getClientFilename () : ? string |
public getClientMediaType () : ? string |
public getError () : int |
public getSize () : ? int |
public getStream () : Psr\Http\Message\StreamInterface |
public isMoved () : bool |
public moveTo ( $targetPath ) : void |
Constants |
private
GuzzleHttp |
Properties |
private
$clientFilename
|
private
$clientMediaType
|
private
$error
|
private
$file
|
private
$moved
|
private
$size
|
private
$stream
|
Methods |
private
isOk
() :
bool
Return true if there is no upload error |
private isStringNotEmpty ( $param ) : bool |
private
setError
(
int
$error
) :
void
|
private
setStreamOrFile
(
$streamOrFile
) :
void
Depending on the value set file or stream variable
|
private
validateActive
() :
void
|