Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Need to enable http put but disable webdav

tasunil1
Level 2
Level 2

We have a connector which uploads file using Asset API HTTP Put to upload any new assets into AEM OnPrem.
The issue we are facing is when we disable WebDAV in AEM, the HTTP PUT also stops. 
Is there a way to allow to upload assets via HTTP PUT while keeping WebDAV disabled.

Thanks

1 Accepted Solution
Jörg_Hoh
Correct answer by
Employee
Employee

What API are you using to upload? How do the requests look like?

 

Jörg

View solution in original post

6 Replies
Jörg_Hoh
Correct answer by
Employee
Employee

What API are you using to upload? How do the requests look like?

 

Jörg

View solution in original post

tasunil1
Level 2
Level 2
Hello Jörg , it is HttpPut api with the file and put request entity, HttpPut put = new HttpPut(makeHttpUrl(url)); put.setEntity(new FileEntity(new File(diskPath))); try (CloseableHttpResponse response = HttpClientFactory.executeRequest(put)) Thanks Regards
tasunil1
Level 2
Level 2
It would be something like PUT aem://<server>:<port>/content/dam/test.xml
Jörg_Hoh
Employee
Employee
This functionality is provided by the WebDAV Bundle. But you could think about switching to "normal" POST Requests, which would then be handled by the Sling Post Servlet (see documentation there). And of course there is the specialized Assets HTTP API (see https://experienceleague.adobe.com/docs/experience-manager-65/assets/extending/mac-api-assets.html?l...)