Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let data = {
- req: this.state.results
- }
- const apiAddress = 'http://localhost:4567/results';
- fetch(apiAddress, {
- method: 'post',
- body: data
- }).then( (res) => {
- console.log(res);
- return res
- });
- Request ------WebKitFormBoundaryBvud3Cn7ZmzAtAXt
- Content-Disposition: form-data; name="data"
- [object Object]
- ------WebKitFormBoundaryBvud3Cn7ZmzAtAXt--
Add Comment
Please, Sign In to add comment