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

FormData() with 'Content-Type': 'multipart/form-data'? #53

Closed
braco opened this issue Mar 30, 2015 · 2 comments
Closed

FormData() with 'Content-Type': 'multipart/form-data'? #53

braco opened this issue Mar 30, 2015 · 2 comments

Comments

@braco
Copy link

braco commented Mar 30, 2015

Trying to send an image across the network. Can't figure out what isn't working.
Headers:

{ 'Content-Type': 'multipart/form-data' }

Content is a FormData Blob object:

https://developer.mozilla.org/en-US/docs/Web/Guide/Using_FormData_Objects

using the request API with

{url: '...', method: 'put', data: blob, headers: {}}

Data seems to get swallowed up and not sent by axios. Body reported by chrome as {}.

This was working with the 'rest' package before I switched over.

Any idea what might be going wrong?

@mzabriskie
Copy link
Member

Sounds like a bug. I will have to investigate.

@mzabriskie
Copy link
Member

This should be fixed with 0.5.4

@axios axios locked and limited conversation to collaborators May 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants