Looking for help to solve my issue, any advice appreciated!
So I'm uploading csv file as formdata to Node environment with XHR request:
var FormData = new FormData();
var file = input.files[0];
FormData .append("file", file);
In the Node environment I receive the following under req.files with JSON.stringify:
Next I need to add authorization header and send the same data to external API.
What I have tried:
- using request module and ```.pipe()``
- using busboy
- and axios with form-data
- basically all these posts: 1, 2, 3, 4, 5, 6, 7
But file is not being sent correctly and server responds with 400.
Limitations As this Node environment is cloud based I cannot access any of the config js files and therefore use express.
Thanks