Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

DAM Upload in component dialog

gowrishankarp21
Level 2
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
Prince_Shivhare
Correct answer by
Community Advisor
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
smacdonald2008
Level 10
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...

Prince_Shivhare
Correct answer by
Community Advisor
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

smacdonald2008
Level 10
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.

Veena_Vikram
Community Advisor
Community Advisor

Why exactly do you need to do this ?