Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 972 Bytes

adapter_ftp.md

File metadata and controls

26 lines (21 loc) · 972 Bytes

Use the FTP adapter

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