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

Multipart requests are running with incorrect content-type headers #1168

Closed
terion-name opened this issue Jan 22, 2020 · 5 comments
Closed

Comments

@terion-name
Copy link

File upload requests are running with application/json content-type, but should with multipart/form-data; boundary=----webkitformboundary (with actual boundary of course). This makes it not usable as servers will fail to recognise and parse request properly

@imolorhe
Copy link
Collaborator

That happens if you don't specify a file, or if you restarted Altair. After restarting, you need to reselect the file again

@terion-name
Copy link
Author

@imolorhe nope
Снимок экрана 2020-01-22 в 23 51 27

screencast 2020-01-22 23-47-30

@imolorhe
Copy link
Collaborator

You also need to specify the name of the file variable

@terion-name
Copy link
Author

@imolorhe ooooh. worked, thank you. half a day spent in struggles :(
not obvious thing, maybe a required constraint should be added?

@imolorhe
Copy link
Collaborator

Sorry about that. I'll consider adding a validation step when sending the request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants