简体   繁体   English

Sonata Media Bundle ftp连接配置?

[英]Sonata Media Bundle ftp connection configuration?

I am trying to configure Sonata Media Bundle ftp connection: 我正在尝试配置Sonata Media Bundle ftp连接:

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. ftp服务器日志不显示任何连接请求。 Isn't it enough to just make the configuration for ftp connection in yml file? 仅在yml文件中为ftp连接进行配置还不够吗? And under the filesystem parameter I only have ftp parameter, no local or any other parameter is configured. 在filesystem参数下,我只有ftp参数,没有配置本地参数或任何其他参数。

(Posted on behalf of the OP). (代表OP发布)。

Sonata Media providers default filesystem are sonata.media.filsytem.local . Sonata Media提供程序的默认文件系统为sonata.media.filsytem.local

I just had to add this to provider 我只需要将此添加到提供商

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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