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