cancel
Showing results for 
Search instead for 
Did you mean: 

How do i add content to a space from an external application

oluwasegzy
Champ in-the-making
Champ in-the-making
Just as i can look up the content of a space from an external application using WS,

How do i upload a content or type a content to a space in the Alfresco Server from an external application
4 REPLIES 4

romschn
Star Collaborator
Star Collaborator
How do you want to upload a content to alfresco repository?

oluwasegzy
Champ in-the-making
Champ in-the-making
I want to use web script to add a content to a the Alfresco Explorer,

I also want to add a space to the Alfresco Explorer with web script

romschn
Star Collaborator
Star Collaborator
For Uploading a content into repository, you may want to use the existing out-of-the-box webscript available for file upload.

You can get more details of it from : http://wiki.alfresco.com/wiki/Web_Scripts_Examples#File_Upload. Please check it with the alfresco version you are using. You may want to customize it as per your requirement.

For creating new spaces in repository, you can write your own java-backed webscript and using create() method of fileFolderService, can create the new spaces in the repository. This would be pretty simple.

Hope this helps.

Thanks,

romschn
Star Collaborator
Star Collaborator
Just to add on to above, if you want to write your own webscript to create content in space, you may refer to AddContentDialog.java class - saveContent() method. It will give you a clear idea.

Hope this helps.

Thanks,