public function isUploaded()
    {
        if (!$this->isValid()) {
            return false;
        }

        if (!isset($this->file['tmp_name'], $this->file['error'])) {
            return false;
        }

        return is_uploaded_file($this->file['tmp_name']) && $this->file['error'] === UPLOAD_ERR_OK;
    }
public function isUploaded()
    {
        if (!$this->isValid()) {
            return false;
        }

        if (!isset($this->file['tmp_name'], $this->file['error'])) {
            return false;
        }

        return is_uploaded_file($this->file['tmp_name']) && $this->file['error'] === UPLOAD_ERR_OK;
    }
public function isUploaded ( ) { if ( ! $ this -> isValid ( ) ) { return false ; } if ( ! isset ( $ this -> file [ 'tmp_name' ] , $ this -> file [ 'error' ] ) ) { return false ; } return is_uploaded_file ( $ this -> file [ 'tmp_name' ] ) && $ this -> file [ 'error' ] === UPLOAD_ERR_OK ; }
Check if the file is uploader

@return bool
Check if the file is uploader