Project

General

Profile

Actions

Bug #25023

closed

Setting uploadfolder to an empty string will break functionality

Added by Sigfried Arnold almost 14 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-02-14
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)

Actions

Also available in: Atom PDF