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

Benjamin Mack benni at typo3.org
Fri Aug 15 19:54:34 CEST 2008


Hey Martin,

what's the status of this issue? I'd like to see this in TYPO3 4.3, 
maybe you can update the patch for the current version and so we'll test 
it.

greetings,
benni.
-SDG-

Martin Borer wrote:
> 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
> 


More information about the TYPO3-team-core mailing list