Suggestion #83307

f:form.upload add parameters accept and capture for image-upload (for mobile)

Added by Sabine Deeken over 3 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Start date:
2017-12-13
Due date:
% Done:

0%

Estimated time:
Has patch:
Tags:

Description

Hello together,
could somebody (please, please) imagine to add the attributes
accept and capture in typo3/sysext/fluid/Classes/ViewHelpers/Form/UploadViewHelper.php

afterwards it should look like something like this below; best this would be optional or recognize, if the file is an image.
<input type="file" name="tx_myExt_myPlugin[myTable][myImageField]" accept="image/*" capture="capture">

in HTML5 this works since Nov 2017, would be cool if TYPO3 could support it soon.
reference here
https://w3c.github.io/html-media-capture/#
https://addpipe.com/blog/correct-syntax-html-media-capture/
https://www.html5rocks.com/en/tutorials/getusermedia/intro/

with the best regards,
Sabine

No data to display

Also available in: Atom PDF