cancel
Showing results for 
Search instead for 
Did you mean: 

how to use UploadContentServlet

iamtheboss1
Champ in-the-making
Champ in-the-making
Hello,  I need help.

We are moving a large number of files (documents) from a local file system to alfresco.  I searched and found there is UploadContentServlet, which seems useful in uploading these files automatically.

First question is, in the following URL, I need to put the nodeRef ID of the space to whcih the file will be loaded.  HOW and WHERE DO I find the ID of the space nodeRef?

/alfresco/upload/workspace/SpacesStore/0000-0000-0000-0000/myfile.pdf

Second question is, I also tried the followin URL;

/alfresco/upload/<file_name>

This works fine, except that I CAN NOT locate the node in the UI.  I see the file (.bin) created in the store, but where (under which space) is the file uploaded?

Thank you so much
1 REPLY 1

openpj
Elite Collaborator
Elite Collaborator
You need to create a node and then you can use the noderef returned from the createNode method to build the custom URL for the upload.
Hope this helps.