I know this one is old, but here is the answer.
There is no supported method for TYPO3 6.2, but in the new TYPO3 7.6 LTS it should be possible to register the hook in your ext_localconf.php file, add this:
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauthgroup.php']['getDefaultUploadFolder'][] = 'VendorName\ExtensionName\Hooks\BackendUserAuthentication->getDefaultUploadFolder'
Create a Classes/Hooks/BackendUserAuthentication.php and write something like this:
<?php namespace VendorName\ExtensionName\Hooks; classe BackendUserAuthentication { public function getDefaultUploadFolder(Array $params, \TYPO3\CMS\Core\Authentication\BackendUserAuthentication $backendUserAuthentication) {
The params array will indicate the following:
$_params = array( 'uploadFolder' => $uploadFolder, // The current \TYPO3\CMS\Core\Resource\Folder object, properly 1:/user_upload/ 'pid' => $pid, // Page id 'table' => $table, // The table name 'field' => $field, // The field name );
Now use the name of the table and fields to change the download folder - good look :)
Lasse source share