Applets into CQ | Community
Skip to main content
18Harry
Level 2
October 16, 2015
Solved

Applets into CQ

  • October 16, 2015
  • 4 replies
  • 1413 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

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 replies

smacdonald2008
Level 10
October 16, 2015

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

Community Advisor
October 16, 2015

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.

18Harry
18HarryAuthor
Level 2
October 16, 2015

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

smacdonald2008
smacdonald2008Accepted solution
Level 10
October 16, 2015

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.