Actions
Task #65089
closedNo SIGNAL_PreFileReplace on file upload
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2015-02-16
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Sprint Focus:
Description
If I upload a file in the backend file/list module with the same name as an existing resource and the file gets replaced, the Signal ResourceStorageInterface::SIGNAL_PreFileReplace
is not emitted. I took a look at the code and noticed that the upload isn't dispatched to ResourceStorage::replaceFile()
, but to ResourceStorage::addUploadedFile()
. In that method, the conflictMode "replace" is not respected and the file gets overridden silently.
Actions