BeforeFileAddedEvent

The PSR-14 event \TYPO3\CMS\Core\Resource\Event\BeforeFileAddedEvent is fired before a file is about to be added to the resource storage / driver. This allows to perform custom checks to a file or restrict access to a file before the file is added.

Example

API

class BeforeFileAddedEvent
Fully qualified name
\TYPO3\CMS\Core\Resource\Event\BeforeFileAddedEvent

This event is fired before a file is about to be added to the Resource Storage / Driver.

This allows to do custom checks to a file or restrict access to a file before the file is added.

getFileName ( )
Returns
string
setFileName ( string $fileName)
param $fileName

the fileName

getSourceFilePath ( )
Returns
string
getTargetFolder ( )
Returns
\TYPO3\CMS\Core\Resource\Folder
getStorage ( )
Returns
\TYPO3\CMS\Core\Resource\ResourceStorage
getDriver ( )
Returns
\TYPO3\CMS\Core\Resource\Driver\DriverInterface