on 2018 Oct 28 12:08 PM
Hi All,
Most of the images are stored at the bucketID (client-dev-media) which is configured in local.properties(see below configuration) and it has no public access.
But, we create certain images, which will send it to the customers via email(should have public access). By default with the below configurations, it saves at the bucketID (client-dev-media).
There is another bucketID(client-dev-media-public) which has public access. However, I don't find any clue, to save certain images at another bucket location.
Please provide solution, to save the image at another bucketID or is there any possibility to provide public access to certain folders of the configured bucketid.
we are using google media storage https://storage.googleapis.com
media.default.storage.strategy=s3MediaStorageStrategy media.default.url.strategy=s3MediaURLStrategy
media.globalSettings.s3MediaStorageStrategy.accessKeyId=XXXXXX media.globalSettings.s3MediaStorageStrategy.secretAccessKey=xxxxxxx media.globalSettings.s3MediaStorageStrategy.endpoint=https://storage.googleapis.com media.globalSettings.s3MediaStorageStrategy.bucketId=client-dev-media media.globalSettings.s3MediaStorageStrategy.url.signed=true media.globalSettings.s3MediaStorageStrategy.url.signed.validFor=60
media.folder.images.storage.strategy=s3MediaStorageStrategy media.folder.images.url.strategy=s3MediaURLStrategy
media.folder.images.bucketId=client-dev-images media.folder.images.url.signed=false
Request clarification before answering.
As already answered above, S3MediaStorageStrategy is to be used for Amazon S3 storage, but the general issue of having different buckets for different media can be resolved.
Try using different media folders and assigning the different buckets (with different security settings) to them. Simply use the following format when configuring properties for your media folders:
media.folder.<folderName>.bucketid=...
media.folder.<anotherfolderName>.bucketid=...
Then just upload your images to different folders via backoffice or impex and you should be ready to go.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The S3 Media Storage Strategy is for Amazon S3. It will not work with Google Cloud Storage.
Only the following media storage are supported:
Local (on the server)
Amazon S3
MongoDB GridFS
Windows Azure Blob
Reference: - Media Storage Overview: https://help.hybris.com/1808/hcd/8c0f906986691014b4c0fc51e280285c.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.