File upload validation error

Using Yii 1.1a October 1, 2009

Following the file upload guide in the Cookbook, if I add validation rules for the file:


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

I receive the following error when saving or updating:


Fatal error: Call to a member function getError() on a non-object in C:\wamp\www\yii\framework\validators\CFileValidator.php on line 146

If I remove the validation rule the image uploads and saves the info in the database just fine.

we have exactly the same error, always with trunk

Just check in a fix. Could you please try again? Thanks.