ajax - Yii upload file from cjuidialog -



ajax - Yii upload file from cjuidialog -

why can't upload files cjuidialog in yii?

<div class="form"> <?php $form=$this->beginwidget('cactiveform', array( 'id'=>'edit-user-form', 'enableajaxvalidation'=>true, 'htmloptions' => array('enctype' => 'multipart/form-data'), 'clientoptions' => array( 'validateonsubmit' => true, 'validateonchange' => true, ) )); ?> <fieldset> <?php echo $form->errorsummary(array($model)); ?> <div> <?php echo $form->labelex($model,'rubric_image'); ?> <?php echo $form->filefield($model,'rubric_image'); ?> </div> <div> <?php echo chtml::submitbutton('upload'); ?> </div> </fieldset> <?php $this->endwidget(); ?> </div>

on standart html page, file sent, if using cjuidialog, file not sent. in reason?

this yii wiki arrticle explains detailed how display form on cjuidialog. dont think problem fileupload, form itself.

ajax file-upload yii

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -