I am using the XUpload extension. I am only allowing a single file upload. For some reason, it disables the file upload field after the image has been uploaded if you choose the single file upload attribute(This doesn’t happen with the multiple file uploads choice).
How can I re-enable to file upload field after a file has been uploaded?
$this->widget('xupload.XUpload', array( 'url'=>Yii::app()->createUrl("movie/upload",array('upload_type'=>'update', 'id'=>$data->id)), 'model' => $uploads, //change from $model 'attribute'=>'file', 'multiple'=>false, ));