This constraint is most commonly used on a property that will be rendered
in a form as a FileType field. For
example, suppose you're creating an author form where you can upload a
"headshot" image for the author. In your form, the headshot property
would be a file type. The Author class might look as follows:

New in version 3.1: The detectCorrupted option was introduced in Symfony 3.1.

type: booleandefault: false

If this option is true, the image contents are validated to ensure that the
image is not corrupted. This validation is done with PHP's imagecreatefromstring
function, which requires the PHP GD extension to be enabled.