Project

General

Profile

Actions

Task #65089

closed

No SIGNAL_PreFileReplace on file upload

Added by Philipp Schiffmann about 9 years ago. Updated over 5 years ago.

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.


Related issues 1 (0 open1 closed)

Blocked by TYPO3 Core - Bug #59475: Folder Object is missing getFileClosedSteffen Ritter2014-06-11

Actions
Actions #1

Updated by Gerrit Code Review about 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

Actions #2

Updated by Frans Saris almost 9 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #3

Updated by Gerrit Code Review almost 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

Actions #4

Updated by Alexander Opitz almost 9 years ago

  • Status changed from Under Review to Resolved

Reopened by accident.

Actions #5

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF