Woh, ok hold on a sec. Did you get the sfFileImageValidator from here? http://snippets.symfony-project.org/snippet/259
If so, that's the problem - that's a Symfony 1.0 style validator, not compatible with the new validation system. The validator for imagefile should (I'm near 100% certain) be passing an object of sfValidatedFile to your updateImagefile method. The fact that it's passing an array is the problem. I'm thinking that this sfFileImageValidator is your problem. Try switching the imagefile validation to sfValidatorFile and see if you have any luck. -Ryan On Apr 9, 9:57 am, Arnold Ispan <[email protected]> wrote: > Hello, > > Thanks for your answer but it doesn't work (it was a typo the > sfValidatorString). > Just tried it, put back the sfFileImageValidator and i still get the error: > > *Fatal error*: Call to a member function getExtension() on a non-object in * > /home/ispa/workspace/timnews/lib/form/GeneralImageForm.class.php* on line * > 41 > > *It seems that instead of a sfValidatedFile i get an array as $value in the > updateImagefileColumn : > > array(5) { > ["name"]=> > string(32) "imagetest_1-1235590741.jpg" > ["type"]=> > string(10) "image/jpeg" > ["tmp_name"]=> > string(14) "/tmp/phpvnybEb" > ["error"]=> > int(0) > ["size"]=> > int(267713) > > } > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---
