DeleteUploads finishers
The "DeleteUploads finisher" removes submitted files. Use this finisher, for example, after the email finisher if you do not want to keep the files within your TYPO3 installation.
Note
Finishers are only executed on successfully submitted forms. If a user uploads a file but does not finish the form successfully, the uploaded files will not be deleted.
Table of contents
Important
Finishers are executed in the order defined in your form definition.
DeleteUploads finisher in the YAML form definition
For example: use this finisher after the email finisher if you do not want to keep the files online.
The finishers are executed in the order they are listed in the form definition YAML file:
Usage of the DeleteUploads finisher in PHP code
Developers can create a confirmation finisher by using the key Delete
:
<?php
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Form\Domain\Finishers\ClosureFinisher;
use TYPO3\CMS\Form\Domain\Model\FormDefinition;
class SomeClass
{
private function addDeleteUploadsFinisherWithMessage(FormDefinition $formDefinition, string $message)
{
$formDefinition->createFinisher('DeleteUploads');
}
}
This finisher is implemented in
\TYPO3\
.