[TYPO3-core] RFC: Bug #6039: TCA group -> file absolute path without uploadfolder (extended)

Martin Borer mbarts at gmx.ch
Thu Feb 28 01:42:48 CET 2008


This is a SVN patch request.

Problem:
In some Extensions (tt_news, mailformplus etc.) the "uploadfolder" 
Option in TCA(group) fields is empty.
The selected file(s) will not be copied to an upload folder. Only 
absolute Path to the original file is stored -> used to prevent multiple 
versions of one file in different records.

There are following Problems with an empty "uploadfolder" Option:
- error with Thumbnails
- no file references
- upload field is unnecessary
- filename isn't identifiable anymore (because the whole long path is 
displayed in the selector box)

Solution:
Some small changes in class.t3lib_tceforms.php, class.t3lib_tcemain.php 
and class.t3lib_refindex.php.
With the patch, the stored path is relative to the site root (instead of 
absolute path).

Comments:
I know that it isn't "Typo3 Style" to make direct relations to files in 
the fileadmin/user_upload folder. But it is very usefull for some 
special cases. In my case, I make video collections with large videos 
(>50MB) and I often select the same video more than once.
I can safe a lot of webspace with direct relations...

Bugtracker references:
http://bugs.typo3.org/view.php?id=6039

Branch: TYPO3_4-2

Greets
Martin
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 6039_v3.patch
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20080228/354db5e5/attachment.txt 


More information about the TYPO3-team-core mailing list