How to send binary data in multipart form data through aiohttp #6433
Unanswered
foxwhite25
asked this question in
Q&A
Replies: 1 comment
-
Appears it should: https://docs.aiohttp.org/en/stable/client_quickstart.html#post-a-multipart-encoded-file |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I found a image api that accept multipart form data, here is how I successfully send a request through the requests lib.
I tried to use
aiohttp.FormData()
but failed, the api returns "Invalid file source"I am wondering if there is a equivalent for aiohttp.
Beta Was this translation helpful? Give feedback.
All reactions