Hi, we have asset upload servlet currently running on on-Prem version. Now plan to migrate it to AEMaaCS. Few APIs are deprecated and needs to use Cloud APIs for asset upload, delete activities. Anyone can you share asset upload functionality sample which would be compatible when deployed onto AEMaaCS with cloud api.
Really appreciate, if anyone can share their pointers around it.
Hello @rsl_lucky ,
Please follow this article on how to upload assets to AEMaaCS.
Here is an overview of the process:
In Experience Manager as a Cloud Service, you can directly upload the assets to the cloud storage using HTTP API. The steps to upload a binary file are below. Execute these steps in an external application and not within the Experience Manager JVM.
Here is a sample code snippets that explain "how to",
Hope that helps!
Hi @PreetpalSinghBi thanks for above information, went through those articles but unclear on approach were to kick start.
Currently aem 6.5 on-Prem version holds a servlet built with AssetManager api and it does the job of upload & delete of assets from repository. Now plan to move for AEMaaCS so in that case this servlet doesn't perform it's job as expected.
Needs to upgrade existing servlets to support AEMaaCS what are the steps need to be taken care here. Really appreciate if any inputs here that would help.
Aem asset create api is deprecated on aem cloud and it’s because of the reason that assets now don’t resides on aem repository instead the binary go to s3 bucket so your existing servlet won’t work for aem cloud.
it seems for your use case you can either use asset upload api as explained on https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/assets/admin/develo... or open source upload library mentioned on the above article
Thanks @DPrakashRaj for the above details.
Can we have any sample steps for the approach to follow in my use case has currently servlet takes care of assets upload job for me. Please let me know the step by step process for the same.
Here is the document that explain step by step process how upload of assets happens on aem cloud
Thanks @DPrakashRaj for the above info.
Came across below sample which does the 3-step process of assets upload but do not see any inputs params like fil I/p & others set while binary upload PUT, asset completion POST requests are made.
Could you let us know if this can be followed and what extra inclusion is required.
@rsl_lucky Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.