Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Multipart: Boundary not found #4577

Closed
coucoseth opened this issue Apr 2, 2022 · 1 comment
Closed

Error: Multipart: Boundary not found #4577

coucoseth opened this issue Apr 2, 2022 · 1 comment

Comments

@coucoseth
Copy link

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

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
@github-actions
Copy link
Contributor

github-actions bot commented Apr 2, 2022

Hello! 👋

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.

Thanks

@github-actions github-actions bot closed this as completed Apr 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant