Adobe Aem Cloud - Load image/pdf | Community
Skip to main content
Best answer by Jagadeesh_Prakash

@robertol6836527  If you just want to load asset to Cloud, create a local user in cloud with appropriate permissions and try using below curl command 

 

curl -X POST \
-u "username:password" \
-H "Content-Type:multipart/form-data" \
-F "file=@path/to/your/image.jpg" \
-F "fileName=image.jpg" \
http://your-aem-instance.com/content/dam/folder/uploadendpoint

 

To upload an image or PDF, you typically use the multipart/form-data content type for the POST request, and you include the binary data of the file in the request body.

2 replies

EstebanBustamante
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
November 29, 2023
Jagadeesh_Prakash
Community Advisor
Jagadeesh_PrakashCommunity AdvisorAccepted solution
Community Advisor
November 29, 2023

@robertol6836527  If you just want to load asset to Cloud, create a local user in cloud with appropriate permissions and try using below curl command 

 

curl -X POST \
-u "username:password" \
-H "Content-Type:multipart/form-data" \
-F "file=@path/to/your/image.jpg" \
-F "fileName=image.jpg" \
http://your-aem-instance.com/content/dam/folder/uploadendpoint

 

To upload an image or PDF, you typically use the multipart/form-data content type for the POST request, and you include the binary data of the file in the request body.

May 28, 2025

/bin/querybuilder.json?path=/content/dam&type=dam:Asset&group.1_group.1_property=jcr:content/metadata/dc:format&group.1_group.1_property.value=application/pdf&group.1_group.2_property=jcr:content/metadata/dc:format&group.1_group.2_property.operation=like&group.1_group.2_property.value=image/%25&group.p.or=true&p.limit=100

its not loading image and pdf ?