2 namespace TYPO3\CMS\Fluid\ViewHelpers\Form;
53 parent::initializeArguments();
54 $this->
registerTagAttribute(
'disabled',
'string',
'Specifies that the input element should be disabled when the page loads');
55 $this->
registerTagAttribute(
'multiple',
'string',
'Specifies that the file input element should allow multiple selection of files');
56 $this->
registerArgument(
'errorClass',
'string',
'CSS class to set if there are errors for this view helper',
false,
'f3-form-error');
69 $allowedFields = array(
'name',
'type',
'tmp_name',
'error',
'size');
70 foreach ($allowedFields as $fieldName) {
73 $this->tag->addAttribute(
'type',
'file');
75 if (isset($this->arguments[
'multiple'])) {
76 $this->tag->addAttribute(
'name', $name .
'[]');
78 $this->tag->addAttribute(
'name', $name);
82 return $this->tag->render();