Bug #25023
closedSetting uploadfolder to an empty string will break functionality
0%
Description
On TYPO3 =< 4.4 it was possible to set the uploadfolder to an empty string. Result was, that no copies of files (to uploads/pics or whatever) were made and a hard link to the original resource was set.
This seems to be broken since 4.5. but worked fine in 4.4.6
Pro:
- Files won't be duplicated and won't consume more diskspace
- Files can be replaced and every instance gets replaced after clearing cache (can be con)
Con:
- If the original file is deleted or changed, every instance is changed (can be a pro)
Since i have no clue where this functionality is built into the core, i have not figured out why its not working yet.
extTables.php:
$GLOBALS['TCA']['tt_content']['columns']['image']['config']['uploadfolder'] = '';
$GLOBALS['TCA']['pages']['columns']['media']['config']['uploadfolder'] = '';
$GLOBALS['TCA']['pages_language_overlay']['columns']['media']['config']['uploadfolder'] = '';
TypoScript setup:
tt_content.image.20.imgPath >
(issue imported from #M17568)