__construct()
__construct(string $path, string $originalName, string $mimeType = null, integer $size = null, integer $error = null)
Accepts the file information as would be filled in from the $_FILES array.
Parameters
string | $path | The temporary location of the uploaded file. |
string | $originalName | The client-provided filename. |
string | $mimeType | The type of file as provided by PHP |
integer | $size | The size of the file, in bytes |
integer | $error | The error constant of the upload (one of PHP's UPLOADERRXXX constants) |