Hello all! Can anyone give a hint with file constraint?
The problem: - form with FileField: Code: $this->add(new FileField('photoFile', array( 'required' => false, 'secret' => 'wwewewewew' ))); - form request class: Code: /** * @validation:File(maxSize = "1M", mimeTypes = { * "image/png", * "image/pjpeg", * "image/jpeg", * "image/gif" * }) */ protected $photoFile; When form submitted - constraint says "The mime type of the file is invalid (""). Allowed mime types are "image/png", "image/pjpeg", "image/jpeg", "image/gif"" for any of type of files (jpeg/png/zip/ pdf). How do validation correct? -- 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