public function afterValidate(Model $model) {
        if (!empty($this->_tempFiles)) {
            foreach ($this->_tempFiles as $file) {
                $file->delete();
            }
            $this->_tempFiles = array();
        }

        return true;
    }