Project

General

Profile

Actions

Feature #71290

closed

UploadViewHelper misses accept tag attribute

Added by Christoph Bessei over 8 years ago. Updated over 5 years ago.

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

100%

Estimated time:
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


Files

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

Updated by Wouter Wolters over 8 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.

Actions #2

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF