Attention
TYPO3 v12 has reached end-of-life as of April 30th 2026 and is no longer being maintained. Use the version switcher on the top left of this page to select documentation for a supported version of TYPO3.
Need more time before upgrading? You can purchase Extended Long Term Support (ELTS) for TYPO3 v12 here: TYPO3 ELTS.
AfterFileCommandProcessedEvent
New in version 11.4
The PSR-14 event
\TYPO3\ can be used
to perform additional tasks for specific file commands. For example, trigger a
custom indexer after a file has been uploaded.
This event is fired in the
\TYPO3\ class.
Example
Registration of the event listener in the extension's Services.:
services:
# Place here the default dependency injection configuration
MyVendor\MyExtension\Resource\EventListener\MyEventListener:
tags:
- name: event.listener
identifier: 'my-extension/after-file-command-processed'
Read how to configure dependency injection in extensions.
The corresponding event listener class:
API
- class AfterFileCommandProcessedEvent
-
- Fully qualified name
-
\TYPO3\
CMS\ Core\ Resource\ Event\ After File Command Processed Event
Event that is triggered after a file command has been processed. Can be used to perform additional tasks for specific commands. For example, trigger a custom indexer after a file has been uploaded.
- getCommand ( )
-
A single command, e.g.
'upload' => [ 'target' => '1:/some/folder/' 'data' => '1' ]Copied!- Returns
-
array<string,array<string,mixed>>