Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rclogerix opened this issue Feb 6, 2025 · 0 comments
Open

Comments

@rclogerix
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant