Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Asset Upload from a WorkflowProcess step on AEM as Cloud service

Avatar

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

Avatar

Correct answer by
Employee Advisor

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

Avatar

Correct answer by
Employee Advisor

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

Avatar

Level 2

Thanks,

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