Alfresco Uploader
Alfresco uploader is designed specifically for alfresco (www.alfresco.com) that uses the alfresco 5.2 api to upload files and folders to a specified remote alfresco instance. It can also upload and its subfolder/files recursively.
Installation
npm install alfresco-uploader
Usage
Case 1:
Lets say we want to upload the "images" folder that sits under "/home/user" on our local to the "documentLibrary" on alfresco, we will use the following code:
const af = ; af;
Case 2:
To upload the "images" folder and all content inside it (subfolders and files) recursively we will use the following code:
const af = ; af;
Case 3:
To upload the "logo.png" file that sits under "/home/user/images" folder we will use the following code:
const af = ; af;
Parameters
-
instanceUrl : The url of alfresco server. [STRING]
-
username : Username of the alfresco instance. [STRING]
-
password : Password of the alfresco instance. [STRING]
-
path : The file or image path that has to be uploaded. [STRING]
-
parentNodeRef : The parent nodeRef where the item will be uploaded. [STRING]
-
recursive : Whether to upload all items inside the "path" recursively. Defaults false. [BOOLEAN] (Optional)
-
overwrite : Whether to overwrite the current file. Defaults true. [BOOLEAN] (Optional)
Contributing
We're always open to your help and feedback. Please email with your pull request at engineering@eisenvault.com