Is there a way to move files through a CSV upload? | Community
Skip to main content
anott
New Participant
June 2, 2023
Solved

Is there a way to move files through a CSV upload?

  • June 2, 2023
  • 3 replies
  • 903 views

Like the subject line says - say I want to organise a large amount of assets into different folders based on a particular attribute (such as the year they were created). Is it possible to do this with a CSV? If I have the path of the original file and the desired destination it seems like it would be quite straightforward, but I don't know how to format the file or what to name the headers.

 

Can anyone advise? Thanks!

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 Saravanan_Dharmaraj

@anott Please check this CSV asset importer. It gives an idea of csv values. 

https://adobe-consulting-services.github.io/acs-aem-tools/features/csv-asset-importer/index.html 

If you are writing your custom servlet code which reads the csv file and create the asset in the destination, you can have any header name. 

https://github.com/leachuk/aem-asset-upload

Many examples are there in the internet. 

3 replies

ManviSharma
Employee
June 5, 2023

Hi,

Yes, you can organize assets into different folders based on a particular attribute using a CSV file.

 

Format the file with two columns: "Original File Path" and "Destination Folder" containing the respective paths. Use a script or custom program to read the CSV file and move the files accordingly in AEM. Ensure you backup assets and test the process before applying it to a large number of files.

Saravanan_Dharmaraj
Saravanan_DharmarajAccepted solution
New Participant
June 2, 2023

@anott Please check this CSV asset importer. It gives an idea of csv values. 

https://adobe-consulting-services.github.io/acs-aem-tools/features/csv-asset-importer/index.html 

If you are writing your custom servlet code which reads the csv file and create the asset in the destination, you can have any header name. 

https://github.com/leachuk/aem-asset-upload

Many examples are there in the internet. 

Rohit_Utreja
New Participant
June 2, 2023

@anott 
It can be done with the help of ACS commons.

Please find below a reference link.

https://adobe-consulting-services.github.io/acs-aem-commons/features/mcp/subpages/process-manager.html

 

I hope it helps!