File Rules Are Not Working

HI

I have set image rules for insert and update scenario, but it is not working, can anyone one has idea why it is not working, rules are given below





return array(

			array('id, title, tags, seo_url, player_type, family_safe, sharing_prompt, exclusive, active, category', 'required','on'=>'insert'),

			array('id, title, tags, seo_url, player_type, family_safe, sharing_prompt, exclusive, active, category', 'required','on'=>'update'),

//			array('id', 'numerical', 'integerOnly' => true, 'message' => 'Please upload video file!'),

 

                    array('thumb1', 'file','types'=>'jpg,gif,png,jpeg','allowEmpty'=>false, 'message'=>'Please select image file ','on'=>'insert'),

                      

                         array('thumb1', 'file','allowEmpty'=>true, 'types'=>'jpg,gif,png,jpeg','message'=>'Please select image file for {attribute}','on'=>'update'),

                        array('thumb2', 'file','allowEmpty'=>true, 'types'=>'jpg,gif,png,jpeg','message'=>'Please select image file for {attribute}','on'=>'insert,update'),

			array('title, seo_url, video', 'length', 'max'=>300),

			array('player_type', 'length', 'max'=>6),

			array('family_safe, sharing_prompt, exclusive, active', 'length', 'max'=>3),

			array('category', 'length', 'max'=>100),

                     

			

			//for Grab Update video detail

			array('title,seo_url, player_type, tags, category, family_safe, sharing_prompt, exclusive, category, active','required','on'=>'grabupdate'),

			array('title, seo_url, video', 'length', 'max'=>300, 'on'=>'grabupdate'),

			array('player_type', 'length', 'max'=>6, 'on'=>'grabupdate'),

			array('family_safe, sharing_prompt, exclusive, active', 'length', 'max'=>3, 'on'=>'grabupdate'),

			array('category', 'length', 'max'=>100, 'on'=>'grabupdate'),

			// The following rule is used by search().

			// Please remove those attributes that should not be searched.

			array('id, title, description, tags, seo_url, player_type, family_safe, sharing_prompt, exclusive, active, category, thumb1, thumb2, server_id, video, view', 'safe', 'on'=>'search'),

			

		);




Thanks

Check if you are getting all the fields for which you have set the required attributeā€¦

Thanks for your reply Manoj, but issue has been resolved now