Sending an axios Post request with csv in its body
问题 What i am trying to achieve is send a post request from my frontend to back end using axios.This post request has a csv file in its body. Using postman : postman request My code is this: import React, { Component } from 'react'; import axios from 'axios' class SessionsUpdate extends Component { state = { selectedFile: null } handleSubmit = async () => { let formData = new FormData(); formData.append('file', this.state.selectedFile); await axios.post( 'https://localhost:8765/...', formData, {