[Flow] Filetype Validator

Jan Greth jan at greth.me
Fri Jan 24 18:18:34 CET 2014


Am 22.01.2014 10:32, schrieb Søren Malling:
> Try and add the following annotation to your "image" property in the model
>
> @Flow\Validate(type="\TYPO3\Media\Validator\ImageTypeValidator", options={
> "allowedTypes"={"jpeg", "png"} })
>


Hey that worked for me.
Had litte problems - 'cause i forgot to add an output of validation 
errors... :)

Thank you!


More information about the Flow mailing list