Use the FTP adapter

October 15, 2024 ยท View on GitHub

This adapter works with the standard PHP FTP implementation which is documented in the manual. You have to provide at least a value for the host key.

# app/config/config.yml
oneup_flysystem:
    acme.ftp.portable_visibility_converter:
        class: League\Flysystem\UnixVisibility\PortableVisibilityConverter

    adapters:
        my_adapter:
            ftp:
                options:
                    host: 'ftp.hostname.com' # required
                    root: '/upload' # required
                    username: 'username' # required
                    password: 'password' # required
                visibilityConverter: acme.ftp.portable_visibility_converter

For more details on the other parameters, take a look at the Flysystem documentation.

More to know