Hi,
I am new to Yii and I am working on the form where file has to be uploaded.
I am using validation rules:
array(‘fileName’, ‘required’),
array(‘fileName’, ‘file’, ‘types’=>‘pdf, png’),
It works fine, but when file is empty, I see warning "File Name cannot be blank." twice
I could remove first restriction, but than I am loosing red astrix, indicating that this field is mandatory.
Any tips?
Thanks
Jerzy