I'm following the jobeet tutorial for symfony 1.2 and I'm also
developing an application on the side.
I need to have file upload that allows web images, audio files, pdfs.
I know that by default, the only mime_categories defined is
'web_images'. How would I define another one to include all my
required mime types?
This is what the code from the jobeet tutorial looks like:
$this->validatorSchema['logo'] = new sfValidatorFile(array(
'required' => false,
'path' => sfConfig::get('sf_upload_dir').'/jobs',
'mime_types' => 'web_images',
));
Bonus question: How would I define a maximum size of 10MB? I think
that by default, uploads are limited to 2MB. Is this a configuration
setting somewhere?
Thanks for your help!
Olivier
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---