[TYPO3-dam-devel] RFC #14009: Feature: Enable secure downloads for DAM files

François Suter fsu-lists at cobweb.ch
Thu Feb 24 14:10:53 CET 2011


Hi,

> Just being curious: Under what circumstances would it happen that these
> hooks aren't available ("In the absence of hooks, just print a standard
> error message and exit the process")?

I mean that my checkDataSubmission hook itself provides a hooks for 
creating a custom error message. If no classes are registered for that 
hook, the standard error message is displayed.

I can explain this better with my use case: I have a client who wants to 
redirect to some special page when a file cannot be downloaded. So in 
this case, TYPO3's 404 redirect would not do. While thinking about this 
patch I decided that there could be so many use cases for this error 
handling, that it wasn't worth introducing tons of TS parameters, but 
rather have some standard, reasonable mechanism and provide a hook for 
those who have a special need.

Cheers

-- 

Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch


More information about the TYPO3-team-dam mailing list