Skip to Content
4
Former Member
May 28, 2018 at 11:52 AM

How to store media in a customized way?

91 Views

Ahoi Hybris experts,

in order to fulfill a set of requirements, we need to store media files based on their corresponding media items, e.g. based on the catalog. This would mean, that a media file is stored like this:

 /<projectId>/<mediaFolderId>/<catalogId>/<mediaPk>.<suffix>

We already had a look at the MediaStorageStrategy and had to realize, that the context of the MediaItem is completely gone, when it comes to the store method of this strategy.

Did anyone ever face a similar situation? What is the best approach to store media in such a customized manner?

Many Thanks in advance

Greetings Johannes