Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

DAM Upload in component dialog

Avatar

Level 2

Need to provide dam upload option in component dialog to upload assets to a particular dam path in touch UI.

Is there any OTB component available for this. If not,kindly suggest an approach. Is there any similar component available to refer.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Tricky one..

Check the above link given by Scott, however you can also refer this:

Managing Assets with the Touch-Optimized UI

check the functionality of Uploading Assets. you will get to know about the concept.

Regards,
Prince

View solution in original post

4 Replies

Avatar

Level 10

The Grainte API does not support this widget OOTB. However - you can build it.

Create a custom Sling Resource Type using a JQuery Plug-in that will have a drop zone on it or button and then perform a AJAX call that uploads a file to a Sling Servlet that will upload the file to the AEM DAM using Asset Manager API.

Combine these 2 articles -

Scott's Digital Community: Uploading files to Adobe Experience Manager DAM using AssetManager API

Scott's Digital Community: Creating a custom Experience Manager sling:resourceType for Touch UI

That is your solution...

Avatar

Correct answer by
Community Advisor

Tricky one..

Check the above link given by Scott, however you can also refer this:

Managing Assets with the Touch-Optimized UI

check the functionality of Uploading Assets. you will get to know about the concept.

Regards,
Prince

Avatar

Level 10

Yes - you can read that link provided by Prince. However - it will give you some background. TO get a field in a component dialog to upload an Asset to the DAM - you will need to build a custom Sling Resource type - like how we built the Color Picker. However - instead of using Color Picker - use upload logic to a Sling Servlet - similiar to the other article that i posted.

Avatar

Community Advisor

Why exactly do you need to do this ?