Skip to content

AWS S3 cache - Option 'imagine_pattern' generates a wrong link 404 #1493

@rclogerix

Description

@rclogerix

Bug Report

Q A
BC Break yes/no
Bundle version 1.8
Symfony version 4.4.51
PHP version 7.4

Summary

I am currently using:

I have integrated AWS S3 to upload files into the cloud. It works fine uploading the files, but when viewing the files it showing 404.
This is mainly caused when I use 'imagine_pattern' => 'scale',

I believe it might be because its trying to cache the image into the imagine_pattern but not sure how to solve this. Please advise, help much appreciated!

Image

The url looks like this:
http://localhost.test/media/cache/resolve/scale/https://bucketName.s3.eu-west-2.amazonaws.com/document/67/67a528b6a66f1390184160.JPG

when I remove this flag, then images will show and I can see they are loaded under the S3 full url.

This is my services.yaml

Image

This is my knp_gaufrette.yaml

Image

This is my vich_uploader.yaml

Image

This is my Form field

Image

This is my liip_imagine.yaml

Image

"aws/aws-sdk-php-symfony": "^2.6",
"knplabs/knp-gaufrette-bundle": "^0.8.0",

Current behavior

How to reproduce

Expected behavior

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions