Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let form = new FormData()
- form.append('My_file', fs.createReadStream('arquivo.json'));
- axios.post('URL_Qualquer', form)
- .then(response => {
- console.log(response)
- })
- .catch(error => {
- console.log(error.response)
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement