Bug #46037
closedTYPO3 deletes versioned files always
0%
Description
Hello,
it seems that TYPO3 does always delete the previous uploaded file when a new file is uploaded in a TCA file upload field, even with activated versioning on that table.
What happens is that that the new file is uploaded, a new history entry will be created and the latest file will be removed. If you now restore to the latest entry, the current file be wiped too and the file entry is invalid now - Results: Data Loss.
This can be simple reproduced by creating a extension with the kickstarter without any plugins, just only one TCA Table with one file upload field, and create a entry on the typo3 backend and upload a file it, replace it with a new file (version) and restore it afterwards.
Please confirm this and please provide a solution.
Updated by Stefan Galinski over 11 years ago
- Subject changed from Typo3 deletes versioned files always to TYPO3 deletes versioned files always
- Status changed from New to Accepted
Undoing a change thru the history triggers this problem. In 6.0 it seems to be impossible to undo such a file change.
Updated by SZUE TSpaete over 11 years ago
I added a simple workaround to correct that issue:
In file t3lib/class.t3lib_tcemain.php:
- Uncomment the statement on line 1492://$this->removeFilesStore[] = $dest . '/' . $theFile;
These permanently does disable the file removals for files on a versioning table.
Updated by Mathias Schreiber almost 10 years ago
- Target version changed from 4.7.9 to 7.4 (Backend)
- Is Regression set to No
Updated by Susanne Moog over 9 years ago
- Target version changed from 7.4 (Backend) to 7.5
Updated by Susanne Moog over 5 years ago
- Status changed from Accepted to Closed
The concepts changed in the mean time quite a bit (and the extension versioning does not exist standalone anymore). I'm closing the issue now, please create a new issue if you think the issue persists.