protected function init()
    {
        if ($this->file->hasError) {
            throw new CException(sprintf(
                'File could not be uploaded: %s',
                $this->getUploadError($this->file->getError())
            ));
        }
    }