This topic contains 5 replies, has 3 voices, and was last updated by zhex900 6 years, 2 months ago.
- Topic
Hi,
I am trying to use AWS S3 to store attachments. Here are my configure files.
app/console cache:clear --env=prod -vvv
had no errors.I have added this
"aws\/aws-sdk-php":"3.*",
to composer.json. Runcomposer update --no-dev
After uploading a product image, the image path still points to my localhost.
I cannot get much help from this post.
123456789101112#vendor/oro/platform/src/Oro/Bundle/AttachmentBundle/Resources/config/services.ymlservices:oro_attachment.aws_s3.client:class: Aws\S3\S3Clientfactory: [Aws\S3\S3Client, 'factory']arguments:-version: latestregion: 'eu-west-2'credentials:key: 'mykey'secret: 'secret'123456789101112131415161718192021222324252627282930#vendor/oro/platform/src/Oro/Bundle/AttachmentBundle/Resources/config/oro/app.ymlknp_gaufrette:adapters:attachments:aws_s3:service_id: 'oro_attachment.aws_s3.client'bucket_name: 'ewhale-shop-prod-attachment-cache'detect_content_type: trueoptions:create: truedirectory: 'attachment'#local:# directory: '%kernel.root_dir%/%oro_attachment.attachments_dir%'mediacache:aws_s3:service_id: 'oro_attachment.aws_s3.client'bucket_name: 'ewhale-shop-prod-attachment-cache'detect_content_type: trueoptions:create: truedirectory: 'mediacache'#local:# directory: '%kernel.root_dir%/../web/%oro_attachment.media_cache_dir%'filesystems:attachments:adapter: attachmentsalias: attachments_filesystemmediacache:adapter: mediacachealias: mediacache_filesystem
The forum ‘OroCommerce’ is closed to new topics and replies.