简体   繁体   中英

Sonata Media Bundle ftp connection configuration?

I am trying to configure Sonata Media Bundle ftp connection:

sonata_media:
    filesystem:
        ftp:
            directory: /path-to-upload
            host:      http://ftp-server-host
            username:  username
            password:  password
            port:      21
            passive:   false
            create:    true
            mode:      2

But when I upload a file nothing happens. The ftp server log does not show any connection request. Isn't it enough to just make the configuration for ftp connection in yml file? And under the filesystem parameter I only have ftp parameter, no local or any other parameter is configured.

(Posted on behalf of the OP).

Sonata Media providers default filesystem are sonata.media.filsytem.local .

I just had to add this to provider

sonata_media:
     providers:
         file:
             filesystem: sonata.media.filesystem.ftp

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM