Expandir la barra de logros de la comunidad.

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

Mark Solution

Esta conversación ha sido bloqueada debido a la inactividad. Cree una nueva publicación.

RESUELTAS

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 solución aceptada

Avatar

Respuesta correcta de
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.

Ver la solución en mensaje original publicado

4 Respuestas

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

Respuesta correcta de
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.