Expand my Community achievements bar.

SOLVED

How to restrict users to update the metadata while uploading the asset in AEM as a Cloud - Assets

Avatar

Level 3

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

[2]: https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/assets/admin/develo...

[3]: https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/assets/admin/mac-ap...

 

Hope this helps!

View solution in original post

5 Replies

Avatar

Employee Advisor

@SDusane 

Metadata Profile on Folder level is designed to help you achieve such usecase.

Please refer to the link below:

https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/assets/manage/metad...

 

Avatar

Level 3

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

 

Avatar

Employee Advisor

@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:

https://experienceleague.adobe.com/docs/experience-manager-64/developing/extending-aem/extending-wor...

 

Avatar

Community Advisor

@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. 

Avatar

Correct answer by
Community Advisor

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

[2]: https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/assets/admin/develo...

[3]: https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/assets/admin/mac-ap...

 

Hope this helps!