SanitizeFileNameEvent

final class \TYPO3\CMS\Core\Resource\Event\SanitizeFileNameEvent

This event is fired after a file name has been sanitized and before a file is added to FAL. Listeners can use this event to modify the file name, and name the file according to naming conventions of a specific project.

Table of Contents

Methods

__construct()  : mixed
getDriver()  : DriverInterface
getFileName()  : string
getOriginalFileName()  : string
getStorage()  : ResourceStorage
getTargetFolder()  : Folder
setFileName()  : void

Methods

getFileName()

public getFileName() : string

Return values

string

getOriginalFileName()

public getOriginalFileName() : string

Return values

string

setFileName()

public setFileName(string $fileName) : void

Parameters

$fileName : string
On this page