Method | Description | |
---|---|---|
__construct ( string $index ) | Constructor. | |
__toString ( ) : string | Conversion to string because of other validators. | |
confirmUpload ( ) : self | Confirms that the file was successfully uploaded. | |
error ( ) : integer | Returns upload error type. | |
extension ( ) : string | null | Returns file extension. | |
filename ( ) : string | null | Returns file name. | |
move ( string $destination ) : boolean | Moves the uploaded file. | |
tmpName ( ) : string | Returns file's temporary name. |
public __construct ( string $index ) | ||
$index | string | File index |
public __toString ( ) : string | ||
return | string |
public confirmUpload ( ) : self | ||
return | self |