Hi all,
2 problems:
first: i want to use mime_categories with web_images in
sfValidatorFile but i think I'm doing it the wrong way
this is what i got
$this->setValidators(array(
'file' => new sfValidatorFile(array('mime_categories' =>
'web_images')),
));
when i run the script i can upload what ever i want
second: in the first problem i manually generate the form and the
upload work fine but when i use the forms that symfony auto generate
from the schema then the validation class convert the parameters of
the file upload (tmp_name, size, type, etc) into form fields and show
me the extra errors
* Extra field type.
* Extra field tmp_name.
* Extra field error.
* Extra field size.
now I'm gonna do the forms manually so my priority is the first
problem the second well if someone have any idea you welcome
best regards,
Jose Garaza
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---