cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Certain images needs to be stored at another Media Storage Bucket ID

Former Member
0 Kudos
423

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

geffchang
Active Contributor
0 Kudos

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