コミュニティアチーブメントバーを展開する。

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

Mark Solution

この会話は、活動がないためロックされています。新しい投稿を作成してください。

解決済み

Applets into CQ

Avatar

Level 2

HI ,

I Have a requirement to upload Folders to DAM. I Intend to use Applets.

If anyone has already implemented the same either using applets or any other means Please let me know.

If not please provide some links to implement the same .

 

Thanks in Advance

---Harry---

1 受け入れられたソリューション

Avatar

正解者
Level 10

Here is a Stackoverflow thread that talks about uploading folders:

http://stackoverflow.com/questions/10399743/jquery-file-upload-plugin-cant-drop-folder

Now to use with AEM - you will have to modify the Servlet code (shown in the above article) to handle folders.

元の投稿で解決策を見る

4 返信

Avatar

Level 10

I have not heard of anyone using Applets and AEM. I would use a FileUploader on the web page and code a Sling Servlet on the backend to place the files in the DAM. 

http://helpx.adobe.com/experience-manager/using/uploading-files-aem1.html

Avatar

Community Advisor

Using a standard HTML form with a file input it is possible to upload a file directly into the DAM. Use a form something like this:

<!DOCTYPE html>
<html>
<body>
  <form method="post" action="http://localhost:4502/content/dam/geometrtixx.createasset.html" enctype="multipart/form-data">
    <input type="hidden" size="20" name="_charset_" value="utf-8">
    <input id="file" name="file" type="file">
    <input type="submit" value="upload">
  </form>
 </body>
</html>

Change the path in the form action from /content/dam/geometrixx to whatever DAM location you wish.

If you select a file named my.gif, it will create an asset in the DAM at /content/dam/geometrixx/my.gif

It will go through the normal workflows to give you the various asset renditions also.

Avatar

Level 2

Hi Smac /ahmed,

Thanks for the response.

But My requirement is to upload FOLDERS and NOT FILES.

Hence i thought of utilizing the applets. Please respond with a suitable solution for my implementation.

 

Thanks in advance

Harry

Avatar

正解者
Level 10

Here is a Stackoverflow thread that talks about uploading folders:

http://stackoverflow.com/questions/10399743/jquery-file-upload-plugin-cant-drop-folder

Now to use with AEM - you will have to modify the Servlet code (shown in the above article) to handle folders.