thx a lot !!! I was bugging since 1 day !! :p
On 8 avr, 17:46, FÁSI Gábor <maerl...@gmail.com> wrote:
> mime_types should be an array.
>
> On Wed, Apr 8, 2009 at 10:26, saturn1...@hotmail.com
>
> <saturn1...@hotmail.com> wrote:
>
> > Hello in the case of an upload of mp3 file, i write this validator :
>
> > $this->validatorSchema['son'] = new sfValidatorFile(array(
> > 'required' => true,
> > 'path' => sfConfig::get('sf_upload_dir').'/mp3',
> > 'mime_types' => 'audio/mpeg',
> > 'max_size' => sfConfig::get('app_max_size_mp3'),
> > ));
>
> > But when i upload an mp3 the error is :
> > Invalid mime type category "audio/mpeg"
>
> > Thank's for the help!
>
> > Good bye!!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---