backend is expecting something like
{ "key" : "xyz" }// and two files I've tried the following code, but it always shows empty params passed in url
const obj = { key : [this.state.key] }; const json = JSON.stringify(obj); const blob = new Blob([json], { type: 'application/json' }); const data = new FormData(); data.append("params", blob); data.append("data1",this.state.file1) data.append("data2",this.state.file2) let res= await axios.get(url,data); console.log(res)