How does an asset that I uploaded to /content/dam get "transferred/copied" to /var/dam? (com.day.cq.dam.api.AssetManager) | Community
Skip to main content
jayv25585659
Level 8
June 20, 2023
Solved

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

  • June 20, 2023
  • 2 replies
  • 758 views

as above.

 

Thank you.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Tanika02

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 replies

aanchal-sikka
Community Advisor
Community Advisor
June 20, 2023

Hello @jayv25585659 

 

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

Aanchal Sikka
Tanika02
Tanika02Accepted solution
Level 7
June 20, 2023

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.