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
TYPO3CMSCoreResourceFolder
getStorage ( )
Returns
TYPO3CMSCoreResourceResourceStorage
getDriver ( )
Returns
TYPO3CMSCoreResourceDriverDriverInterface