# TYPO3 Extension filefill [![Latest Stable Version](https://img.shields.io/packagist/v/ichhabrecht/filefill.svg)](https://packagist.org/packages/ichhabrecht/filefill) [![Build Status](https://img.shields.io/travis/IchHabRecht/filefill/master.svg)](https://travis-ci.org/IchHabRecht/filefill) [![StyleCI](https://styleci.io/repos/123628122/shield?branch=master)](https://styleci.io/repos/123628122) Find and fetch missing local files from different remotes. Ever tried to set up a new system as copy from an existing one? Wondered if all the files (in fileadmin) are really needed? Ever run into the problem that a local file was missing? Filefill fetches missing files from one or multiple remote servers to ensure you have all the files you need for the new system. The extension requires the usage of FAL api to fetch missing files. Files are stored directly in the (local) storage folder (e.g. fileadmin). You can re-run filefill at any time by deleting the local files in the storage folder. ## Installation Simply install the extension with Composer or the Extension Manager. ## Usage You only need to configure one or more existing "File Storage" records *Prerequisite: Only storages with a "Local filesystem" driver are currently supported.* - go to the root of your TYPO3 page tree (id=0) - change to the list module (Web -> List on the left side) - find the "File Storage" section and edit a record - change to the tab "File Fill" and select the enable checkbox - define the resource chain that should be used to fetch missing files ## Resources Resources define the places (url / services) were filefill tries to fetch missing files from. You can use multiple resources to build some kind of fallback chain. ### Single domain Fetch missing files from a fixed url. Configuration: - Url: Enter a valid url (incl http/https scheme) You can use multiple single domains within one resources configuration. ### Domain records Fetch missing files from an available Domain record. Filefill runs through all Domain records as long as the file can be fetched or all records are processed. Configuration: - no configuration required (the checkbox is just a field placeholder) There is no need for multiple usage. All Domain records are used by default. ### Placeholder.com Fetch a missing image from the [placeholder.com](https://placeholder.com) service. This fetches an image with the correct resolution of the original file. Configuration: - no configuration required (the checkbox is just a field placeholder) There is no need for multiple usage. This resource can be the last one in the chain but can handle image files only. ## Community - Thanks to [Marcus Schwemer](https://twitter.com/MarcusSchwemer) who wrote about filefill in his blog [TYPO3worx](https://typo3worx.eu/2018/03/eight-typo3-extensions-making-developers-happy/)