For the moment, I did that which is really ugly: http://pastie.org/1753850
On 4 avr, 10:11, _kud <kud.g...@gmail.com> wrote: > $_FILES returns "application/octet-stream". :/ > > On 31 mar, 20:46, Gábor Fási <maerl...@gmail.com> wrote: > > > > > > > > > Check what mime type is sent by IE. You can use wireshark, or do a quick n' > > dirty die(var_dump($_FILE)) in your action. > > On Mar 31, 2011 8:35 PM, "_kud" <kud.g...@gmail.com> wrote: > > > > Hello, > > > > I've some troubles with IE6 (oh, really?), I'd like to validate my mp4 > > > uploaded file but sf 1.4 answers me it's a wrong mime type. > > > > What I've done: > > > > $this->setValidator('video', new sfValidatorFile( > > > array( > > > 'mime_types' => array('video/mpeg','video/mpg','video/ > > > mp4'), > > > 'path' => sfConfig::get('sf_upload_dir').'/users/video', > > > 'required' => false, > > > 'max_size' => '10485760' > > > > ), > > > )); > > > > I checked my file with 'file --mime-type example.mp4' in shell > > > (macos), it returns 'video/mp4', and when I use my form with Fx4 or > > > Safari or Chrome, I've no trouble. > > > > Do you have any idea how to validate a mp4 file with IE6? > > > > Thank you. > > > > -- > > > If you want to report a vulnerability issue on symfony, please send it to > > > security at symfony-project.com > > > > 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 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com 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