Hi There,
I want to set some mandatory metadata to an asset while uploading using Create > Files, is there any way to achieve it?
Thanks,
SD
Solved! Go to Solution.
Views
Replies
Total Likes
If further more customization is involved then you can also create a file upload utility in AEM Granite UI shell which will accept file upload [1] and also add a text field to update asset metadata. So on upload, you can call AEM upload asset API [2] and post upload you can call another update asset metadata API.
[1]: https://medium.com/@vsr061/create-custom-aem-menu-tools-with-granite-ui-shell-53c56e435f8a
Hope this helps!
Metadata Profile on Folder level is designed to help you achieve such usecase.
Please refer to the link below:
Hi @krati_garg ,
The case is external agencies upload the assets in DAM and they don't know how to update the metadata through properties. So, now I want a setup like whenever user is uploading the asset in DAM, they should see some form to update the metadata like expiry date for it.
I want to update the metadata at asset level, like expiry date of each asset is different.
I am already updating folder level metadata to the asset.
Thanks,
SD
@SDusane On Upload event, a workflow can be triggered and with a Dialog Participant step, we can take user input. Please note, this dialog can be customized as per the requirement. With another workflow custom process, we can take this user input and get it saved against asset's metadata properties.
Please find more information on dialog participant step here:
@SDusane I agree with @krati_garg solution to do it with some workflow step.
But if this requirement is just to update only 1 to 2 metadata parameters. To make it easy try to update the metadata of the asset using a servlet by putting the metadata values as a queryparameters.
If further more customization is involved then you can also create a file upload utility in AEM Granite UI shell which will accept file upload [1] and also add a text field to update asset metadata. So on upload, you can call AEM upload asset API [2] and post upload you can call another update asset metadata API.
[1]: https://medium.com/@vsr061/create-custom-aem-menu-tools-with-granite-ui-shell-53c56e435f8a
Hope this helps!