public function uploadFile()
	{
        if (!isset(Yii::app()->params['ciims_plugins']['upload']))
        {
            Yii::import('cii.utilities.CiiFileUploader');
            $className = 'CiiFileUploader';
        }
        else
            $className = Yii::app()->params['ciims_plugins']['upload']['class'];

        $config = isset(Yii::app()->params['ciims_plugins']['upload']['options']) ? Yii::app()->params['ciims_plugins']['upload']['options'] : array();
        $class = new $className($config);
        $this->_result = $class->upload();
        $this->_response = $this->_handleResourceUpload($this->_result['url']);

        return $this->_response;
	}