‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Resource\Event\BeforeFileCreatedEvent Class Reference

Public Member Functions

 __construct (private string $fileName, private Folder $folder)
 getFileName ()
 getFolder ()

Detailed Description

This event is fired before a file is about to be created within a Resource Storage / Driver. The folder represents the "target folder".

This allows to further analyze or modify the file or filename before it is written by the driver.

Definition at line 28 of file BeforeFileCreatedEvent.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Resource\Event\BeforeFileCreatedEvent::__construct ( private string  $fileName,
private Folder  $folder 

Definition at line 30 of file BeforeFileCreatedEvent.php.

Member Function Documentation

◆ getFileName()

TYPO3\CMS\Core\Resource\Event\BeforeFileCreatedEvent::getFileName ( )

◆ getFolder()

TYPO3\CMS\Core\Resource\Event\BeforeFileCreatedEvent::getFolder ( )