implement uploader for Yii framework