Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. let form = new FormData()
  2. form.append('My_file', fs.createReadStream('arquivo.json'));
  3. axios.post('URL_Qualquer', form)
  4. .then(response => {
  5. console.log(response)
  6. })
  7. .catch(error => {
  8. console.log(error.response)
  9. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement