Hi,
How I can use copyAsset method to create new version of an asset if destination asset already exist.
Thanks
LM
Solved! Go to Solution.
Views
Replies
Total Likes
You can use the AssetManager-API to create revisions[1].
kind regards,
Jörg
Views
Replies
Total Likes
Look at this community article:
https://helpx.adobe.com/experience-manager/using/graniteAPI.html
It talks about using the Granite version of AssetManager to move digital assets. Its up to your app logic to name the asset when you move it. For example:
String assetPath = "/content/dam/testfolder/somefile.pdf";
String copyPath = "/content/dam/testhtml/copieddoc.pdf";
assetManager.copyAsset(assetPath, copyPath);
You can check to see if a asset has the name. If so - change the name of the new asset - ie - copieddoc1.pdf.
Views
Replies
Total Likes
You can use the AssetManager-API to create revisions[1].
kind regards,
Jörg
Views
Replies
Total Likes
Views
Likes
Replies
Views
Like
Replies