Skip to content

Streaming upload #6820

Answered by webknjaz
h1vemaster asked this question in Q&A
Jul 10, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

The examples in this documentation section https://docs.aiohttp.org/en/stable/client_quickstart.html#streaming-uploads show how to pass a separate async generator function or a pre-opened file handle as a data. It also mentions that you should be able to just pass the incoming request.content there. https://docs.aiohttp.org/en/stable/client_reference.html#aiohttp.ClientResponse.content seems to implement the async iterator protocol for this to work.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@h1vemaster
Comment options

Answer selected by webknjaz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants