BeforeFileAddedEvent¶
The PSR-14 event \TYPO3\
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¶
Note
Currently, we do not have an example for this event. If you can provide a useful one, please open an issue with your code snippets or a pull request.
API¶
- class BeforeFileAddedEvent ¶
-
- Fully qualified name
-
\TYPO3\
CMS\ Core\ Resource\ Event\ Before File Added Event
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\ Resource Storage
- getDriver ( ) ¶
-
- Returns
-
\TYPO3\
CMS\ Core\ Resource\ Driver\ Driver Interface