Upload Asset preserving the Asset metadata
I would like to Upload Assets in DAM while preserving the Asset Metadata.
I found there is a replace method in fileUpload.js under coral.components.commons.fileupload.clientlibs but this it deletes the assets and uploads the new and therefore the previous metadata are lost.
Any ideas how to achieve this?
replace: function(duplicateDialog, damfileupload, duplicates) {
var applyAllCheckbox = duplicateDialog.getElementsByTagName("coral-checkbox")[0];
if ((applyAllCheckbox && applyAllCheckbox.checked) || duplicates.length === 1) {
this._addReplaceAssetParam(damfileupload.fileUpload, duplicates);
damfileupload._continueUpload(damfileupload.fileUpload);
} else {
this._addReplaceAssetParam(damfileupload.fileUpload, [ duplicates[0] ]);
duplicates.splice(0, 1);
damfileupload._showDuplicates(duplicates);
}
},
rep