Hey programmers, i have a serious problem for me (but not for you), i made a yii application where i want to upload my clients logo. But my client logo is not required field to upload, i want to add client name and logo (if any). until this, i approached in a normal way and successfully add my client(name and logo). But i noticed, although i didn’t place my logo(image file) required in my models rule,
array(‘client_name, project_name’, ‘required’),
array(‘logo’, ‘file’, ‘types’=>‘png, jpg, jpeg, gif’),
when i add any clint without logo, it displays an error : "Please fix the following input errors:
Logo cannot be blank."
what should i do ? again, file types must be varified.
thanks