Property | Type | Description | |
---|---|---|---|
$_alwaysRejectedExtensions | string | ||
$_file | array | ||
$_key | string |
Method | Description | |
---|---|---|
__construct ( string $key, array $file ) | \ManaPHP\Http\Request\File constructor | |
getError ( ) : string | Returns the error code | |
getExtension ( ) : string | Returns the file extension | |
getKey ( ) : string | Returns the file key | |
getName ( ) : string | Returns the real name of the uploaded file | |
getSize ( ) : integer | Returns the file size of the uploaded file | |
getTempName ( ) : string | Returns the temporary name of the uploaded file | |
getType ( ) : string | Returns the mime type reported by the browser This mime type is not completely secure, use getRealType() instead | |
isUploadedFile ( ) : boolean | Checks whether the file has been uploaded via Post. | |
moveTo ( string $dst, string | false $allowedExtensions = 'jpg,jpeg,png,gif,doc,xls,pdf,zip' ) | Moves the temporary file to a destination within the application |
public __construct ( string $key, array $file ) | ||
$key | string | |
$file | array |
public getExtension ( ) : string | ||
return | string |
public getTempName ( ) : string | ||
return | string |
public isUploadedFile ( ) : boolean | ||
return | boolean |
protected static string $_alwaysRejectedExtensions | ||
return | string |