[TASK] Add possibility to dump file to browser
The FileAbstractionLayer currently only provides the possibility to retrieve the contents of a file as a string. If you want to output a file this would lead to a massive memory overhead for large files when building some kind of download/jumpurl/access-restricted download script. This change adds a method "dumpFileContents" to the ResourceStorage allowing to directly output the contents of the file including setting correct headers. In addition it introduces a new method (same name) in the DriverInterface and implements it in the LocalDriver. Resolves: #52589 Releases: 6.2 Change-Id: I050da59b136fafbf3f05ac814bd3f11f20ae2396 Reviewed-on: https://review.typo3.org/26835 Reviewed-by: Frans Saris Reviewed-by: Philipp Gampe Reviewed-by: Ingo Schmitt Reviewed-by: Sebastian Fischer Tested-by: Sebastian Fischer Reviewed-by: Benjamin Mack Tested-by: Benjamin Mack
Showing
- typo3/sysext/core/Classes/Resource/Driver/DriverInterface.php 10 additions, 0 deletions...3/sysext/core/Classes/Resource/Driver/DriverInterface.php
- typo3/sysext/core/Classes/Resource/Driver/LocalDriver.php 14 additions, 0 deletionstypo3/sysext/core/Classes/Resource/Driver/LocalDriver.php
- typo3/sysext/core/Classes/Resource/ResourceStorage.php 27 additions, 0 deletionstypo3/sysext/core/Classes/Resource/ResourceStorage.php
Please register or sign in to comment