This event is fired before a file is about to be replaced. Custom listeners can check for file integrity or analyze the content of the file before it gets added.
Method: getFile() Description: Returns the file object. ReturnType: TYPO3CMSCoreResourceFileInterface
Method: getLocalFilePath() Description: Returns the path to the local file (with which the file object will be replaced). ReturnType: string