[TYPO3-dam] secure filelinks in RTE (like in dam_filelinks)

Georg Kuehnberger georg at georg.org
Fri Feb 12 00:58:01 CET 2010


Ahoi Chaps,

As you might know dam_filelinks offers the function of "secure" 
filelinks, where links in the FE wont point to eg. 
fileadmin/dam/filename.pdf
but rather to index.php?someParameters and the download would go via 
index.php.

Unfortunately links from within the RTE (media-tag) dont feature this 
functionality. (this functionallity allows to completely disable direct 
access to eg. the fileadmin/dam/ directory).

So we're interested in implementung such a function as an option 
configurable via the EXT dam ext-config.

Questions:
- anyone else interested in such a feature?
- anyone already working on such?

Thanks upfront, regards Georg


Codepointers:

dam_filelinks/class.tx_damfilelinks.php, ~ Zeile 484:


* @param       string          $url: file url
* @param       array           $conf: typoscript configuration
* @param       array           $record: record with all informations
about the file
return $this->pObj->cObj->typolink('',array(
'returnLast'=>'url',
'parameter'=>$GLOBALS['TSFE']->page['uid'],
'additionalParams'=>'&cid='.$this->pObj->cObj- >data['uid'].'&did='. 
$record['dam'].'&sechash='.substr(md5($this- >pObj->cObj->data['uid']. 
$record['dam']. $GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey']), 0,8),
'no_cache'=>1
));


More information about the TYPO3-project-dam mailing list