Create a gist now

Instantly share code, notes, and snippets.

@THPubs /alfresco-upload.js Secret
Last active Jul 2, 2018

Embed
What would you like to do?
alfresco-upload
const form = new FormData();
form.append('filedata', fs.createReadStream(`tmp/abc.txt`));
const alfrescoResponse = await axios({
method: 'POST',
url: `https://${host}/nodes/-my-/children?alf_ticket=${alfrescoLoginTicket}`,
headers: {
'Content-Type': 'multipart/form-data'
},
data: form
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment