Form.uploadDeleteCheckbox ViewHelper <f:form.uploadDeleteCheckbox> 

ViewHelper which renders a checkbox field used for file upload deletion in Extbase forms.

Go to the source code of this ViewHelper: Form\UploadDeleteCheckboxViewHelper.php (GitHub).

Table of contents

Examples 

packages/my_extension/Resources/Private/Partials/Upload.fluid.html
<f:form.uploadDeleteCheckbox id="file" property="file" fileReference="{myModel.file}" />
Copied!
HTML output
<input type="checkbox" id="file" name="tx_myextension_plugin[@delete][item][hash]" value="signed-json-string">
Copied!

Argument of the f:form.uploadDeleteCheckbox 

additionalAttributes

additionalAttributes
Type
array
Additional tag attributes. They will be added directly to the resulting HTML tag.

aria

aria
Type
array
Additional aria-* attributes. They will each be added with a "aria-" prefix.

data

data
Type
array
Additional data-* attributes. They will each be added with a "data-" prefix.

fileReference

fileReference
Type
TYPO3\CMS\Extbase\Domain\Model\FileReference
Required
1
The file reference object

id

id
Type
string
ID of the generated checkbox element

property

property
Type
string
Required
1
Name of object property