Symfony Flysystem S3 imagine上传

Symfony Flysystem S3 imagine上传,symfony,amazon-s3,liipimaginebundle,flysystem,Symfony,Amazon S3,Liipimaginebundle,Flysystem,我目前正在使用vich_uploader将文件上载到S3(这可以正常工作)。但是现在我还想应用一些liip_image filter_集,当前的config.yml如下所示: liip_imagine: loaders: loader_aws_s3_images: flysystem: filesystem_service: oneup_flysystem.awss3v3_filesystem resolve

我目前正在使用vich_uploader将文件上载到S3(这可以正常工作)。但是现在我还想应用一些liip_image filter_集,当前的config.yml如下所示:

liip_imagine:
    loaders:
        loader_aws_s3_images:
            flysystem:
                filesystem_service: oneup_flysystem.awss3v3_filesystem
    resolvers:
        profile_photos:
            flysystem:
                filesystem_service: oneup_flysystem.awss3v3_filesystem
                root_url:           "%s3_directory%"
                cache_prefix:       media/cache
                visibility:         public
    filter_sets:
        cache: ~
        179x151:
            filters:
                thumbnail: { size: [179, 151], mode: inset }
        50x50:
            filters:
                thumbnail: { size: [50, 50], mode: inset }
oneup_flysystem:
    adapters:
        upload_adapter:
            awss3v3:                  
                client: ct_file_store.s3 #this needs to match the "service" you defined above
                # service_id: client.s3
                bucket: %aws_s3_bucket%
                prefix: ~
    filesystems:
        awss3v3:
            adapter:    upload_adapter
            mount:   prefix

vich_uploader:
    db_driver: orm 
    storage:   flysystem
    mappings:
        profile_pics:
            # uri_prefix: https://s3.eu-central-1.amazonaws.com/%aws_s3_bucket% # you'll need this set to use the Vich URL generator
            upload_destination: prefix
            # upload_destination: %kernel.root_dir%/../web/images/profile_pics
            namer: vich_uploader.namer_uniqid
            delete_on_remove: true
            delete_on_update: true
        project_docs:
            # uri_prefix: https://s3.eu-central-1.amazonaws.com/%aws_s3_bucket% # you'll need this set to use the Vich URL generator
            upload_destination: prefix
            # upload_destination: %kernel.root_dir%/../web/images/profile_pics
            namer: vich_uploader.namer_uniqid
            delete_on_remove: true
            delete_on_update: true
composer.json:

"liip/imagine-bundle": "@stable",
"aws/aws-sdk-php": "@stable",
"oneup/flysystem-bundle": "@stable",
"league/flysystem-aws-s3-v3": "@stable"

目前我得到一个
源映像找不到
我尝试创建自定义解析器/加载程序来读取S3,但没有成功。

我有一个类似的设置,在开发它时,前缀有问题。存储在路由中的文件,Liip试图从另一个路由加载这些文件。使用和清空bucket并逐步查找文件的存储位置有助于我找到正确的配置。祝你好运谢谢你,伙计!我会调查的。没有类似的东西存在,我特别想在将上传文件写入S3之前更改其大小。我正在S3中保存所有内容,原始文件和生成的缩略图。在我们的例子中,S3每月花费我们很少欧元,所以我们可以负担得起。