简体   繁体   中英

Oneup flysystem and liip imagine local cache settigns

I have a folder outside the project root which contains uploaded images now i want to store the Liip imagine cache there as wel by making use of the oneup flysystem.

config.yml

liip_imagine:
    resolver:
        upload_adapter:
            flysystem:
                filesystem_service: oneup_flysystem.profile_photos_filesystem
                root_url:           "http://images.example.com"
                cache_prefix:       media/cache
                visibility:         public

    filter_sets:
        cache: ~
        thumb:
            quality: 75
            filters:
                thumbnail: { size: [120, 90], mode: outbound }
        large:
            quality: 75
            filters:
                thumbnail: { size: [800, 600], mode: outbound }
    loaders:
        default:
            filesystem:
                data_root: "%upload_file_path%"

oneup_flysystem:
    adapters:
        upload_adapter:
            local:
                directory: "%upload_file_path%"

    filesystems:
        deliva_filesystem:
            adapter: upload_adapter

But it keeps giving me this error: 在此输入图像描述

看起来尽管捆绑包的配置似乎是一个突破性的变化,但更新到1.3可以解决问题。

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