upload ActiveForm setting in Yii

if you want use ActiveForm upload files in Yii, you need do the follow setting 

{Code}

'htmlOptions'=>array('enctype'=>'multipart/form-data'),