Hi, I'm using akeneo pim 2.3.
I configure aws s3 bucket.
The images are stored in as3 but the urls always are:
"pim-url/media/show/...some_image.jpg"
I am doing something wrong?
app/config/config.yml (this config is ok?)
oneup_flysystem:
adapters:
catalog_storage_adapter:
awss3v3:
client: acme.s3_client
bucket: somebucket
prefix: media
asset_storage_adapter:
awss3v3:
client: acme.s3_client
bucket: somebucket
prefix: media
services.yml
acme.s3_client:
class: Aws\S3\S3Client
factory_class: Aws\S3\S3Client
factory_method: factory
arguments:
-
version: '2006-03-01'
region: "us-east-1"
credentials:
key: "KEY"
secret: "secret"
Hi,
It shouldn't matter the storage you are using the url will remain unchanged. There is a controller in Akeneo handling access to those files.
That allows thumbnails to be generated on the fly as well when needed,
https://github.com/akeneo/pim-community-dev/blob/2.3/src/Pim/Bundle/EnrichBundle/Controller/FileController.php#L77
so everything is fine the way you set it up, if you can see the images in the bucket s3.
Edit : Akeneo will generate thumbnails in the web directory, those won't be stored in the bucket s3 but it's fine as those can be deleted and akeneo will simply regenerate them.
Most helpful comment
Hi,
It shouldn't matter the storage you are using the url will remain unchanged. There is a controller in Akeneo handling access to those files.
That allows thumbnails to be generated on the fly as well when needed,
https://github.com/akeneo/pim-community-dev/blob/2.3/src/Pim/Bundle/EnrichBundle/Controller/FileController.php#L77
https://github.com/akeneo/pim-community-dev/blob/2.3/src/Pim/Bundle/EnrichBundle/Resources/config/routing/media.yml#L1
so everything is fine the way you set it up, if you can see the images in the bucket s3.
Edit : Akeneo will generate thumbnails in the
webdirectory, those won't be stored in the bucket s3 but it's fine as those can be deleted and akeneo will simply regenerate them.