Open webpipl opened 5 years ago
add "name" variable will do
let fm = new FormData();
response.name = response.fileName;
fm.append('files', response)
axios({
method: 'post',
url: targetURL,
data: fm,
config: { headers: {'Content-Type': 'multipart/form-data' }}
}).then(resp=>{
doSomething(resp)
})
how can i upload pdf or word file to server
iam getting this reponse but iam getting confused
how can i use this with axios pls tell me
React Native 0.59