[TASK] Add possibility to dump file to browser 35/26835/2
authorSteffen Ritter <info@rs-websystems.de>
Wed, 15 Jan 2014 13:49:42 +0000 (14:49 +0100)
committerBenjamin Mack <benni@typo3.org>
Thu, 30 Jan 2014 18:14:23 +0000 (19:14 +0100)
commit3ac80662f3cd00efc0a99357618de8c54f2f64c2
tree0afa4b89a8fe5bbc8cf472682f426aaa54837eb7
parente81d0605bb428a6ea494e39b63fbef932259a65b
[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
typo3/sysext/core/Classes/Resource/Driver/DriverInterface.php
typo3/sysext/core/Classes/Resource/Driver/LocalDriver.php
typo3/sysext/core/Classes/Resource/ResourceStorage.php