BeforeFileAddedEvent

FinalYes

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.

Table of Contents

Methods

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

Methods

getFileName()

public getFileName() : string
Return values
string

getSourceFilePath()

public getSourceFilePath() : string
Return values
string

setFileName()

public setFileName(string $fileName) : void
Parameters
$fileName : string

        
On this page

Search results