Expand my Community achievements bar.

SOLVED

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

Avatar

Level 2

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!

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

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

Avatar

Employee Advisor

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.