protected function init()
    {
        if ($this->file->hasError) {
            throw new CException(sprintf(
                'File could not be uploaded: %s',
                $this->getUploadError($this->file->getError())
            ));
        }
    }
protected function init()
    {
        if ($this->file->hasError) {
            throw new CException(sprintf(
                'File could not be uploaded: %s',
                $this->getUploadError($this->file->getError())
            ));
        }
    }
protected function init ( ) { if ( $ this -> file -> hasError ) { throw new CException ( sprintf ( 'File could not be uploaded: %s' , $ this -> getUploadError ( $ this -> file -> getError ( ) ) ) ) ; } }
Checks if there were any errors during file upload.
@throws CException
Checks if there were any errors during file upload .