Jyxo\Input\Validator\Upload::filter PHP Method

filter() public method

Sets that the file fas successfully uploaded.
public filter ( Upload $in ) : Upload
$in Jyxo\Input\Upload Uploaded file
return Jyxo\Input\Upload
    public function filter($in)
    {
        if (!$this->error && !$this->failedEmpty) {
            $in->confirmUpload();
        }
        return $in;
    }