Open GoogleCodeExporter opened 8 years ago
Sorry guys for submitting this. It isn't an issue.
I found the solution: I must disable the activeform's validation for the file
field.
'disableAjaxValidationAttributes'=>array('RegistrationForm_verifyCode',
'Profile_photo'),
By the way, it will be helpful to write this to the documentation, not?
And.. sorry for my bad english.
Original comment by hea...@gmail.com
on 1 Mar 2011 at 1:39
Arrgh, my solution on 1st comment works only, when I delete(comment) 2 lines on
the components/UWFile.php:
//if ($model->validate()) {
if ($old_file&&file_exists($old_file))
unlink($old_file);
$value->saveAs($file_name);
//}
The $model->validate() returns false, when i have more fields in profile.
..but it isn't a good solution.
Original comment by hea...@gmail.com
on 1 Mar 2011 at 1:51
Original issue reported on code.google.com by
hea...@gmail.com
on 1 Mar 2011 at 1:06