BWSnippet

Yii multipart form file rule

Yii multipart form file rule

Yii allow empty file uploads in form

Just use 'allowEmpty'=>true to allow a file upload to be empty on submit.


array('image', 'file', 'types'=>'jpg, gif, png' , 'allowEmpty'=>true),

Tags

Yii multipart form file rule