Zend\Form\Element\File represents a form file input. It can be used with the Zend\Form\View\Helper\FormFile view helper.
Zend\Form\Element\File extends from ZendFormElement.
This element automatically adds a "type" attribute of value "file", and will set the form’s enctype to multipart/form-data.
1 2 3 4 5 6 7 | use Zend\Form\Element;
use Zend\Form\Form;
$file = new Element\File('my-file');
$form = new Form('my-file');
$form->add($file);
|
The source code of this file is hosted on GitHub. Everyone can update and fix errors in this document with few clicks - no downloads needed.