[TYPO3-dev] Filemount / Filelink-Concept

Wolfgang Klinger wolfgang at stufenlos.net
Mon Jan 9 17:36:40 CET 2006


 Hi!

 On Mon, 09 Jan 2006, Daniel Brün wrote the following:
> When setting up a filemount I can define several additional options, 
> such as "Directory not www-accessible" or "FE-Groups".
> Whenever an author creates a file-link in the RTE and links to a 
> protected file, the link automagically points to a download.php-file 
> which takes care of reading the file from the FS and delivering it. The 
> download-Script should also check for the required permissions. All 
> parameters (filename, filemount-id) should be encrypted using the 
> standard encryption string and passed to the script as simple 
> GET-Parameters.

 I've done exactly that half a year ago. It doesn't require any
 XCLASSing if you need this only for links in the RTE
 (but we should aim for a more general solution that works out of the
 box for every link set anywhere in TYPO3).

 I save the file references in a database table.

 The link looks like: http://www.domain.org/download/file/1/103/org-en.pdf

 So you have a download page with a special plugin that takes care of
 the right headers to download the file, the page ID, the ID of the file
 in the database and the original filename (optional).
 This plugin checks the permissions before delivering it to the client.

 I'm willing to take this further and integrate it into the core.
 Please add a feature request in the bugtracker and assign it to me if
 you want me to do it.


 kind regards
 Wolfgang





More information about the TYPO3-dev mailing list