Content upload script

Showing results for 
Search instead for 
Did you mean: 
Member II

Content upload script

Hi Alfresco community,

I want to upload some content (folders and files) to Alfresco but I do not want to do it manually, can I write some script to make this task easier and to use it further when I have other content to upload?

1 Reply

Re: Content upload script

You could write a script in any language of your choice to call file-upload rest apis to upload files into alfresco. If you have multiple files in a folder, then you can iterate the directories and upload the files one by one. 

Following APIs can be utilized:

An example of Upload Post api using java: 

You can also use CMIS for uploading files, example:

For upload a folder containing multiple files, you can use ftp or webdav.

Java example of ftp based upload can be found here:

(ACSCE, AWS SAA, Azure Admin)