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
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Asset Upload from a WorkflowProcess step on AEM as Cloud service

andrija_sm
Level 2
Level 2

What is the recommended way to upload a file as a DAM asset from a workflow process step (WorkflowProcess) on AEM as Cloud service?

https://experienceleague.adobe.com/docs/experience-manager-cloud-service/assets/admin/developer-refe... proposes open source upload libraries: https://github.com/adobe/aem-upload.

 

However I am not using HTTP API, I am generating a file and have a need to perform the upload within a workflow step, this happens entirely on the back-end.

Prior to Cloud we were using com.day.cq.dam.api.AssetManager createAsset method, but based on previous document, this is now deprecated. What is the official recommendation?

 

Thanks

1 Accepted Solution
jbrar
Correct answer by
Employee
Employee

@andrija_sm  - The architecture of the AEM cloud is different than AEM 6.5 and below. When you upload Assets to AEM cloud, they are not uploaded to AEM but to the backend data store and AEM just gets the signed URL to read/update the binary from Datastore. So, it's not comparable with traditional AEM instances where assets were directly uploaded to AEM

 

AEM Cloud can be configured to use direct binary upload, which means that asset binaries are no longer uploaded straight to AEM. I have used file upload before and its works without an issue.

View solution in original post

2 Replies
jbrar
Correct answer by
Employee
Employee

@andrija_sm  - The architecture of the AEM cloud is different than AEM 6.5 and below. When you upload Assets to AEM cloud, they are not uploaded to AEM but to the backend data store and AEM just gets the signed URL to read/update the binary from Datastore. So, it's not comparable with traditional AEM instances where assets were directly uploaded to AEM

 

AEM Cloud can be configured to use direct binary upload, which means that asset binaries are no longer uploaded straight to AEM. I have used file upload before and its works without an issue.

View solution in original post

andrija_sm
Level 2
Level 2

Thanks,

what are the options, now if we need to perform a dam upload within a workflow process step?