Hi, I am desgining and developing an e-Learning system for which i am using symfony 1.4 with doctrine ORM.
I am using doctrine form to upload video with mime_type validation as $this->validatorSchema['file']->setOption('mime_types', array('video/ mpeg','video/mpg','video/mp4','video/flv')); $this->validatorSchema['file']->setMessage('mime_types', 'The file must be of Mpeg, Mp4 and flv format.'); where "file" is table field name, which widgets are set as follows: 'file'=> new sfWidgetFormInputFile(), When i am uploading a video with .mpeg and .mpg extension its working perfectly but when i am trying to upload .flv video or mp4, mime_type validation is getting failed. same code i am using for Audio upload also where it is working perfectly. The code what i am using for audio upload is as follows $this->validatorSchema['file']->setOption('mime_types', array('audio/ mpeg','audio/x-ms-wma')); $this->validatorSchema['file']->setMessage('mime_types', 'The file must be an Audio file in mp3, mp2, mpga or wma format.'); In case of audio i am able to upload all type of audio. Can anyone help me in this issue? I have posted this issue on symfony forum also but no one replied me. Please help me in this issue. Thank in advance. -- 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