Project

General

Profile

Actions

Feature #17304

closed

add uploadfolder TSConfig override possibility

Added by Stefano Cecere over 17 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2007-05-13
Due date:
% Done:

0%

Estimated time:
PHP Version:
4.3
Tags:
Complexity:
Sprint Focus:

Description

right now with TSConfig it is possible to override these config parameters of a group field:

group - size, autoSizeMax, max_size, show_thumbs, maxitems, minitems

it would be VERY USEFUL to add 'uploadfolder'.

to simply modify line 344 of class.t3lib_tceforms.php to
'group' => array('size', 'autoSizeMax', 'max_size', 'show_thumbs', 'maxitems', 'minitems','uploadfolder'),

isn't enough (TCE uses the overridden value to "read" files, but when it has to WRITE them, they go to nonoverridder TCA uploadfolder)

can anybody give a deeper eye in it?

(issue imported from #M5623)

Actions #1

Updated by Oliver Hader over 17 years ago

The override possibility is for the TCEFORM object of Page TSconfig.
Changing the uploadFolder would also mean to inform other affected parts (e.g. also FE) that something has changed - and these are not TCEFORM at all.

Actions #2

Updated by Stefano Cecere over 17 years ago

yes i understand..

so there is no way to easily modify the uploadfolder by TS or conditions...

i was exploring Dynamic Flexforms, but it seems to not be able to just MODIFY an existing field (it just adds/moves them)

(how do people organize files attached to thousands of records? all in just one folder?)

Actions #3

Updated by Stefano Cecere about 17 years ago

hasn't anybody need of this feature?

is everybody storing all records files in just one static upload folder?

i think that an even better solution would be NOT adding parameters in the TSConfig, but in the upload field definition TCA, like this:

'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' ...

Actions #4

Updated by Martin Kutschker about 17 years ago

The problem is also that if you move a record from one part to hte other the value of the upload folder could also change. So not only the FE must be somehow be informed of that seeting, but also every move operation in the DB may result in move operations in the file system as well. And to make things worse: consider the record to be moved in a workspace!

While I sometimes wished to have such a feature myself, I think it's not possible.

Actions #5

Updated by Alexander Opitz over 11 years ago

  • Status changed from New to Needs Feedback
  • Target version deleted (0)

As this report is very old, is the handling in newer TYPO3 CMS Versions (like 6.0/6.1) more like you expect it?

Actions #6

Updated by Alexander Opitz about 11 years ago

  • Status changed from Needs Feedback to Closed

No feedback for over 90 days.

Actions

Also available in: Atom PDF