You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i am trying to upload files to my nodejs server from react native and my code works fine with other versions of axios but the latest 0.25.0. i had to downgrade to 0.21.4
To Reproduce
const data = new FormData();
data.append('firstName', firstName);
data.append('lastName', lastName);
data.append('img', img);
const a = axios.create({
headers: {
'Content-Type': 'multipart/form-data',
},
});
let baseURL = `https://3be7-1672-20-7432443.ngrok.io/${url}`;
return a
.post(baseURL, data)
.then(response => {
console.log('api response', response.data);
return response.data;
})
.catch(error => {
console.log(error)
});
Expected behavior
i expected my file to be uploaded to my API
Environment
Axios Version 0.25.0
OS: iOS 12.1.0
React Native 0.67.0
The text was updated successfully, but these errors were encountered:
This issue is being automatically closed because it does not follow the issue template. Please read the issue template carefully and follow all of the instructions when opening a new issue.
Describe the bug
i am trying to upload files to my nodejs server from react native and my code works fine with other versions of axios but the latest 0.25.0. i had to downgrade to 0.21.4
To Reproduce
Expected behavior
i expected my file to be uploaded to my API
Environment
The text was updated successfully, but these errors were encountered: