내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.
해결됨

Adobe Aem Cloud - Load image/pdf

Avatar

Level 4

Good morning,

 

In Adobe Aem Cloud is it possible to load image/pdf type content into the asset module with a post type rest call ?

 

Thank you.

주제

토픽은 커뮤니티 콘텐츠를 분류하여 관련성 있는 콘텐츠를 찾는 데 도움이 됩니다.

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Community Advisor

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

원본 게시물의 솔루션 보기

3 답변 개

Avatar

Community Advisor and Adobe Champion

Hi, 

Yes, before you can do this through the Asset API: https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/assets/admin/mac-ap...but I think know you should do it this way: https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/assets/admin/develo... 

 

Hope this helps



Esteban Bustamante

Avatar

정확한 답변 작성자:
Community Advisor

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

Avatar

Level 1

/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 ?