yii ajax xupload form submit is not working
问题 Q1 : form submitting is not working. Q2 : how to limit upload files (e.g 1 - 5 files only) status : create a form with ajax upload xupload My model (fadepreciation.php) public function afterSave( ) { $this->addImages( ); parent::afterSave( ); } public function addImages( ) { //If we have pending images if( Yii::app( )->user->hasState( 'images' ) ) { $userImages = Yii::app( )->user->getState( 'images' ); //Resolve the final path for our images $path = Yii::app( )->getBasePath( )."/../images