Method | Description | |
---|---|---|
filter ( |
Sets that the file fas successfully uploaded. | |
getError ( ) : string | Returns error message in case of upload error. | |
isValid ( |
Checks if the file was successfully uploaded. | |
requireUpload ( boolean $flag = true ) : self | Sets if a file is required to be uploaded. |
Method | Description | |
---|---|---|
isUploaded ( string $file ) : boolean | Checks if the file was uploaded. |
Method | Description | |
---|---|---|
setError ( integer $error ) | Sets upload errors. |
public filter ( |
||
$in | Uploaded file | |
return |
protected isUploaded ( string $file ) : boolean | ||
$file | string | File index in the $_FILES array |
return | boolean |
public requireUpload ( boolean $flag = true ) : self | ||
$flag | boolean | Does the file have to be uploaded |
return | self |