How to send files and data using POST requests? #7042
Answered
by
Dreamsorcerer
martinenkoEduard
asked this question in
Q&A
-
How do I rewrite this files = {'file1': open(fileName,'rb')}
r = requests.post(requestURL, files=files, data=values) using aiohttp and I suppose asynchronous file read? |
Beta Was this translation helpful? Give feedback.
Answered by
Dreamsorcerer
Oct 23, 2022
Replies: 1 comment 1 reply
-
Doesn't this answer your question? I literally just searched for "file" on the client page.. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
martinenkoEduard
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Doesn't this answer your question?
https://docs.aiohttp.org/en/stable/client_quickstart.html#post-a-multipart-encoded-file
I literally just searched for "file" on the client page..