Hi. I am using AEM Assent API and trying to upload a binary file using HTTP request.
Here you can find the docs: https://docs.adobe.com/content/help/en/experience-manager-65/assets/extending/mac-api-assets.html#cr...
It's working for images but for every json files i am uploading, it's creating new directory with name of the file instead of uploading this file. Any suggestions? How the request should looks like?
Solved! Go to Solution.
Views
Replies
Total Likes
@MatStyler Thanks for following up. I tried this out. When we give Content-Type : "application/json" , it is creating a folder , So I tried with a generic type as Content-Type:"application" and it worked ✌
Even though it throws me error , file actually got uploaded
Hope this works for you ✌
Thanks
Veena
Hi @MatStyler
Recently I tried out Asset API myself and tried to put it in a video for others if it helps. Please check it how to upload asset here https://youtu.be/NL-2WqitHUE?t=835
Hope this helps
Veena ✌
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
If I understand you correctly are you are trying to create an asset outside any folder , and are seeing that the curl command is creating a folder instead of a node name?
Views
Replies
Total Likes
Views
Replies
Total Likes
@MatStyler Thanks for following up. I tried this out. When we give Content-Type : "application/json" , it is creating a folder , So I tried with a generic type as Content-Type:"application" and it worked ✌
Even though it throws me error , file actually got uploaded
Hope this works for you ✌
Thanks
Veena
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Likes
Replies
Views
Like
Replies