Is there any way to upload files within folders? | Community
Skip to main content
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 abhishekanand_

Hi @johann_lu , if your goal is to upload files to a specific folder in DAM, you can refer to this blog that explains the utilization of Asset Manager API: https://medium.com/rewrite-tech/how-to-upload-assets-in-aem-dam-using-the-assetmanager-api-17950475386
you can customize this according to your specific use case.

Hope this helps!

5 replies

Harwinder-singh
Community Advisor
Community Advisor
March 26, 2024

@johann_lu you can only upload files in AEM DAM from the assets console.

However, this might be a possibility with the AEM desktop App (at least to some extent).

 

https://experienceleague.adobe.com/en/docs/experience-manager-desktop-app/using/archive/best-practices-for-v1

 

Johann_LuAuthor
Level 4
March 26, 2024

Can I change it through code?

Johann_LuAuthor
Level 4
March 26, 2024

My clients don't want to download a desktop App.

RajaShankar
Community Advisor
Community Advisor
March 26, 2024

@johann_lu 

I am not sure which version of AEM are you using(6.5 or AEMaaCS) however you can achieve this using below options:

 

a) Extract Archive: You can zip and drag and drop the files along with required folder and subfolder structure and upload them to AEM Assets and select extract the Archive .This will extract the assets along with the folder structure .Please refer here

 

b) Bulk Import using S3 or Dropbox or google drive .You can create the folder structure along with assets to the supported cloud storage(Dropbox,Google drive, etc..) as shown here. This can migrate the same folder structure along with assets.

 

c) Other option is as @harwinder-singh  mentioned you can use Desktop App to drag and drop.

 

Hope this answers your question.

Johann_LuAuthor
Level 4
March 26, 2024

Yes, it is 6.5. Can I change it through code?

abhishekanand_
Community Advisor
abhishekanand_Community AdvisorAccepted solution
Community Advisor
March 26, 2024

Hi @johann_lu , if your goal is to upload files to a specific folder in DAM, you can refer to this blog that explains the utilization of Asset Manager API: https://medium.com/rewrite-tech/how-to-upload-assets-in-aem-dam-using-the-assetmanager-api-17950475386
you can customize this according to your specific use case.

Hope this helps!

Abhishek Anand
RajaShankar
Community Advisor
Community Advisor
March 29, 2024

@johann_lu As I understand from below thread after series of interaction is you want your users to upload folder directly inside AEM DAM 6.5 with less steps .As I mentioned earlier you can use Extract Archive Workflow you can customize as you asked in the thread.

 

Step 1: Customize the DAM Update Asset workflow add a pre step to check to find mime type of file if its imported as ZIP file Step 2: If its of zip file type then add the process step of "Extract Archive" Workflow this will automatically unzips the folder and file in the path .

 

So when ever a user uploads a zipped folder with asset files the above workflow will get launched automatically and unzips the file for user. They need not do any explicit unzip etc.

 

This way it will automate your entire process of uploading file to DAM with folders.

kautuk_sahni
Community Manager
Community Manager
June 10, 2024

@johann_lu Did you find the suggestions from users helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!

Kautuk Sahni