FAL FTP Driver¶
Provides a FTP driver for the TYPO3 File Abstraction Layer (FAL).
Repository at https://github.com/adgrafik/fal_ftp
Since TYPO3 v6.2 the interface of the driver had changed. So use the version 1.0.x for earlier versions and 1.1.x for the version 6.2.
This extension was only tested with the versions 6.1 and 6.2. So if you find out that it works also with 6.0, please let me know.
- Just install the extension over the Extension Manager in back end.
- Perhaps you have to clear cache in install tool as well.
- Go to the root level in the list view and create a new "File Storage" record.
- Choose "FTP filesystem" as driver.
- Enter the setup information for your FTP account at the "Driver Configuration".
- Save record.
Now you can use it like the local filesystem.
There are many FTP server out there and every use an own format for listing. So this extension can't support every of them. If you think you need a parser for a special FTP server, please send me a patch or add your own parser.
Register parser since v1.0.2 and v1.1.3:
$registerParser = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('AdGrafik\\FalFtp\\FTPClient\\ParserRegistry'); $registerParser->registerParser('My\\Parser\\Class');
How to write an own parser, see example in file
There are some known problems with the PHP FTP functions. In any case, if you find a solution for some of them, please send me a patch.
Creation date and other informations¶
The create/modification date is not valid. This cause the FTP server returns an unsatisfying result like " (Fixed in v1.0.2 and v1.1.3.)
Aug 21 2001".
Copy and move between storages¶
With version 1.0.x and TYPO3 v6.1.x copying and moving from local filesystem to FTP filesystem will work. But not in the other way. Since TYPO3 v6.2.x this function is only available for files.
In some cases it's necessary to deactivate the content adapter since TYPO3 v6.2.
$TYPO3_CONF_VARS['FE']['activateContentAdapter'] = '0';
imageLinkWrap in TYPO3 v6.1¶
The function imageLinkWrap checks if a file exists with
is_file($imageFile). This will not work with externals files. You have to adapt the TypoScript to make this working.