[TYPO3-dev] add uploadfolder TSConfig ovverride possibility

stefano cecere scecere at krur.com
Tue May 15 01:40:52 CEST 2007


Oliver Hader wrote:
>> it would be enough to add to the "uploadfolder" TCA some capabilities
>> like "foreign_table_where" in SELECT type fields..
>> even also a ###REC_FIELD_[fieldname]###   ... do you think it's
>> complicated?
>>
>> putting the calculation straight in the TCA (and not in the TSConfig)
>> should prevent all those problems, not?
> 
> What exactly do you mean? Something like the following?
> array(..., 'uploadFolder' => userFunc($something), ...);
> 
> TCA just defines the table and the how the fields there are used. But
> TCA isn't called with the values of each different record.

Hi Oliver

i think that it could just be (the simplier way):

'uploadfolder' => 'myfolder/###REC_FIELD_subfolder###';

where 'subfolder' is a string field of that record.
so i can figure some records to store its files in 'subdir1', and others in 'subdir2' ...

(it's not jsut becouse of large number of files, but also to help backups/management of set of files (they are huge videos)

i know: every external/FE code calling TCA to get the 'uploadfolder' has to parse it... but doesn't it work like this in the "foreign_table_where" field config?

am i missing something?

stefano




More information about the TYPO3-dev mailing list