$errors
$errors : int[]
$errors : int[]
$clientFilename : string
$clientMediaType : string
$error : int
$file : string|null
$moved : bool
$size : int
$stream : \Psr\Http\Message\StreamInterface|null
__construct(\Psr\Http\Message\StreamInterface|string|resource $streamOrFile, int $size, int $errorStatus, string|null $clientFilename = null, string|null $clientMediaType = null) : mixed
\Psr\Http\Message\StreamInterface|string|resource | $streamOrFile | |
int | $size | |
int | $errorStatus | |
string|null | $clientFilename | |
string|null | $clientMediaType |
moveTo(string $targetPath) : mixed
Move the uploaded file to a new location.
string | $targetPath | Path to which to move the uploaded file. |
if the upload was not successful.
if the $path specified is invalid.
on any error during the move operation, or on the second or subsequent call to the method.