jpmschuler / filefill-payload
Addon for EXT:filefill to provide static file replacements for common binary formats
Installs: 6 722
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:typo3-cms-extension
Requires
- php: ^7.2 || ^8.0
- ichhabrecht/filefill: ^4.2
- typo3/cms-core: ^v8.7 || ^v9.5 || ^v10.4 || ^11.5 || ^12
Requires (Dev)
- ergebnis/composer-normalize: ^2.28
- friendsofphp/php-cs-fixer: ^v3.1.0
- saschaegerer/phpstan-typo3: ^1
- sebastian/phpcpd: ^6.0.3
- squizlabs/php_codesniffer: ^3.6
- ssch/typo3-rector: ^1
- typo3/tailor: ^1.5
README
TYPO3 EXT:filefill_payload
A TYPO3 EXT:filefill resource handler to supply working binary files.
While EXT:filefill overs a wonderful "static" option to replace files with content, for some scenarios a correct binary file is necessary. Especially testing file mime types and interpreting files might be necessary, not only in regression tests (which should run on a 1:1 system copy, but should be available on a shrunken system, too).
So this extensions supplies smallest possible binary files as an in-place replacement for those files, while still providing a real file (e.g. videos are playable, archives are extractable).
The file types also include legacy stuff like .flv
or .rm
as these are found
in actual systems.
Images are excluded from this, as they would possibly break visual regression
testing and EXT:filefill already
provides the ResourceHandler
placeholder.com
.
Example Configuration (if list of extensions is empty, the default value
7z,avi,ext,flv,mov,mp4,pdf,rar,rm,webm,zip
is used):
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['filefill']['storages'][1] = [ [ 'identifier' => 'staticbinaries', 'configuration' => '7z,avi,ext,flv,mov,mp4,pdf,rar,rm,webm,zip' ] ];