Warning: You are browsing the documentation for Symfony 2.0, which is no longer maintained.
Read the updated version of this page for Symfony 5.3 (the current stable version).
See the File constraint for the bulk of the documentation on this constraint.
This constraint shares all of its options with the File constraint. It does, however, modify two of the default option values:
string default: an array of jpg, gif and png image mime types
You can find a list of existing image mime types on the IANA website
This file is not a valid image
This work, including the code samples, is licensed under a Creative Commons BY-SA 3.0 license.