Skip to main content
jayv25585659
Level 8
jun. 20, 2023 8:35 AM UTC
Respondido

How does an asset that I uploaded to /content/dam get "transferred/copied" to /var/dam? (com.day.cq.dam.api.AssetManager)

as above.

 

Thank you.

Este tópico foi fechado para respostas.
Tanika02
Tanika02Resposta
Level 7
jun. 20, 2023 9:29 AM UTC

Hello @jayv25585659 

 

  • In AEM, the /var/dam path is a virtual mapping that represents the assets stored in the /content/dam location. It does not mirror the entire folder structure of /content/dam. Instead, it provides optimized access to assets through dynamically generated URLs.
  • Therefore, /var/dam virtual mapping is primarily used for serving assets to the frontend, dynamically generating URLs, and optimizing performance. It doesn't reflect the exact folder structure within /content/dam. To access assets programmatically, you should primarily interact with the /content/dam location using the appropriate APIs, such as the AssetManager.

2 Respostas

aanchal-sikka
Community Advisor
Community Advisor
jun. 20, 2023 8:54 AM UTC

Hello @jayv25585659 

 

Why are you looking for an asset uploaded in "/content/dam/my-folder-here" under "/var/dam/my-folder-here"?

Traduzir
Aanchal Sikka
Tanika02
Tanika02Resposta
Level 7
jun. 20, 2023 9:29 AM UTC

Hello @jayv25585659 

 

  • In AEM, the /var/dam path is a virtual mapping that represents the assets stored in the /content/dam location. It does not mirror the entire folder structure of /content/dam. Instead, it provides optimized access to assets through dynamically generated URLs.
  • Therefore, /var/dam virtual mapping is primarily used for serving assets to the frontend, dynamically generating URLs, and optimizing performance. It doesn't reflect the exact folder structure within /content/dam. To access assets programmatically, you should primarily interact with the /content/dam location using the appropriate APIs, such as the AssetManager.
Traduzir