php - Zend 2 annotations and file validators -
is possible use file validation classes form annotations?
/** * @form\name("profile_avatar") * @form\type("zend\form\element\file") * @form\options({"label":"your avatar"}) * @form\validator({"name":"zend\validator\file\isimage"}) */ public $profile_avatar;
with code above form valid if send non-image file.
i think have use "isimage" name... had similar problem hostname valuidator. didn't solved because can't options working...
Comments
Post a Comment