Instantly share code, notes, and snippets.

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

What would you like to do?
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