cancel
Showing results for 
Search instead for 
Did you mean: 

Upload a tree of nodes

spilby
Confirmed Champ
Confirmed Champ
Hi,

I need to upload a tree on Alfresco, with various nodes and contents. ¿I need to upload every node, one by one? ¿Or there are a webservice or function to upload a full tree with their different nodes?

Thank you very much!
4 REPLIES 4

mikeh
Star Contributor
Star Contributor
You can use FTP, WebDAV or CIFS to upload a folder structure.

Thanks,
Mike

gyro_gearless
Champ in-the-making
Champ in-the-making
You may also package your documents in a plain ZIP file and use the Explorer GUIs Import function to upload them!

Cheers
Gyro

spilby
Confirmed Champ
Confirmed Champ
Well, but I need to upload the tree of nodes with a webservice in Java, like when I use, for example, repositoryService.update or CMLUpdate to upload a single node.

mrogers
Star Contributor
Star Contributor
You are going to have to upload some sort of packaged structure for example a zip file and then have an action unpack it on the server.   You can either run the action explicitly (so do it in two calls) or for eample have the server run a rule on all zip files to unpack them and do whatever else you need to happen.   

Another approach I have used with Alfresco is to post a multi-part mime message to a webscript.   That works better than having all the web services guff in the way since you simply stream the files and whatever else is needed rather than faffing around with wrapping the content up in XML.