Skip to main content

ui:fileUploadDeleteCheckbox

View as Markdown

Renders a checkbox that deletes an already uploaded file when the form is submitted.

It complements the FileUpload primitive, which handles files picked in the browser, for a FileReference that is already stored. The checkbox carries the same signed @delete value as TYPO3's <f:form.uploadDeleteCheckbox>.

Place it inside a ui:form.root whose objectName matches the name of the action argument, otherwise it throws an exception. property names the model property the file reference belongs to. Inside a ui:field.root it defaults to the name of the field.

Name Type Description Required Default
fileReference TYPO3\CMS\Extbase\Domain\Model\FileReference The existing file reference to allow deleting. Yes -
property string The model property (or dot-path) the file reference belongs to. Inherited from a surrounding ui:field.root when omitted. No -
id string The id attribute of the checkbox. No -
class string The class attribute of the checkbox. No -