-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
aiohttp can't send files by POST request correct #161
Comments
For lazy ones aiohttp sends the next data with POST: |
|
And one more note for lazy ones: in case with passing of read bytes to
I've simplified a little bit the client part. I've removed the example with |
Well, that's funny and should be fixed. Thanks for report. |
@kxepal do you think this issue still true with new multipart support? |
This issue appears invalid now. Reproduced this with:
And it looks like we generate a valid HTTP request body - on the server side I get:
|
Ok, thanks. |
I've bumped into multiple different issues when tried to send a file to my REST service. I think it'll be better when I just left some code samples instead of detailed description.
In client part I send two different in size files. I send them using different transports to have the possibility to see errorrs. One of transport is requests and the other is asyncio.
The server part has been written with bottlepy.
The text was updated successfully, but these errors were encountered: