-
-
Save THPubs/301f17b03c333370e7c48b3646084f6e to your computer and use it in GitHub Desktop.
alfresco-upload
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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