Secure your assets and data from unwanted download. Apply TYPO3 access rights to ALL file assets (PDFs, TGZs or JPGs etc. - configurable) - protect them from direct access.
The code part (lines 114-126) should simply be removed, because otherwise the use of the event in line 111 makes no sense and has no use. The event is very good for manipulating the file to be delivered, which is very handy if I want to deliver a different version of the original file, for example. But if I manipulate $file in an event listener of AfterFileRetrievedEvent, the new/modified $file will not be reflected/used in the returned response/stream!
So please remove the code if that makes sense to you.
Thank you very much for your good work and support!
In my opinion, the code (line 114-126) in the FileDelivery class should be removed to get the intended functionality! https://github.com/Leuchtfeuer/typo3-secure-downloads/blob/7ef9d9b5609ba4b77a6e789c49f3030a86f3f634/Classes/Resource/FileDelivery.php#L114
The code part (lines 114-126) should simply be removed, because otherwise the use of the event in line 111 makes no sense and has no use. The event is very good for manipulating the file to be delivered, which is very handy if I want to deliver a different version of the original file, for example. But if I manipulate $file in an event listener of AfterFileRetrievedEvent, the new/modified $file will not be reflected/used in the returned response/stream!
So please remove the code if that makes sense to you.
Thank you very much for your good work and support!