Task #65089
closedNo SIGNAL_PreFileReplace on file upload
100%
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.
Updated by Gerrit Code Review over 9 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/38505
Updated by Frans Saris over 9 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 109b0c60d4ec2e06dd9eceef354e61d9f0442b3d.
Updated by Gerrit Code Review over 9 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch master of project Teams/Security/TYPO3v4-Core has been pushed to the review server.
It is available at http://review.typo3.org/40636
Updated by Alexander Opitz over 9 years ago
- Status changed from Under Review to Resolved
Reopened by accident.