Expand my Community achievements bar.

How to use aem-upload in Java?

Avatar

Level 3

Before we were using Asset Java APIs to create assets in Java, but it looks like that is deprecated.

 

I saw from another post that we'll need to use aem-upload: https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/assets/admin/dev...

 

I'm confused on how we're supposed to use aem-upload in Java, it doesn't seem to be a Java API. Is it even possible? Appreciate if anyone can include an example I can reference. 

 

 

2 Replies

Avatar

Level 5

You will have to invoke the upload using httpclient APIs in Java.

Also, for authentication, you can use token based authentication - https://experienceleague.adobe.com/en/docs/experience-manager-learn/getting-started-with-aem-headles...

 

Avatar

Administrator

@IshaJa Did you find the suggestion helpful? Please let us know if you need more information. If a response worked, kindly mark it as correct for posterity; alternatively, if you found a solution yourself, we’d appreciate it if you could share it with the community. Thank you!



Kautuk Sahni