我在项目根目录之外有一个文件夹,其中包含上传的图像现在我想通过使用 oneup flysystem 来存储 Liip 想象缓存。
配置.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