Feature #71290

UploadViewHelper misses accept tag attribute

Added by Christoph Bessei over 4 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2015-11-03
Due date:
% Done:

100%

PHP Version:
Tags:
Complexity:
no-brainer
Sprint Focus:

Description

Currently it's not possible to add the "accept" attribute to <f:form.upload>.
M.e it's enough to register the tag attribute:

@$this->registerTagAttribute('accept', 'string', 'Specifies the types of files that the server accepts');@

Accept attribute:
http://www.w3schools.com/tags/att_input_accept.asp

UploadViewHelper.patch View (4.2 KB) Christoph Bessei, 2015-11-03 19:35

History

#1 Updated by Wouter Wolters over 4 years ago

  • Status changed from New to Resolved

Use `additionalAttributes` which is a common API for adding undeclared attributes with arbitrary values to any TagBasedViewHelper, which all the form field ViewHelpers are.

Closing as "resolved" because an official API exists for arbitrary attributes.

#2 Updated by Benni Mack almost 2 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF