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

Comments

@braco
Copy link

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

This comment has been minimized.

Copy link
Member

commented Apr 8, 2015

Sounds like a bug. I will have to investigate.

@mzabriskie mzabriskie added the type:bug label Apr 8, 2015

@mzabriskie mzabriskie closed this in 42fc395 Apr 8, 2015

@mzabriskie

This comment has been minimized.

Copy link
Member

commented Apr 8, 2015

This should be fixed with 0.5.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.