-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Streamed uploads #201
Comments
👍 planning on implementing this soon |
Stupid question: is there a way to do |
@sigmavirus24 yep, you can upload files as well: $ http -f POST example.com/jobs name='John Smith' cv@~/Documents/cv.pdf I'll take a look at the features provided by requests-toolbelt. Thanks for the tip! |
Just to be sure, as I don't want to create a duplicate ticket: When I try to upload big files (2GB), I get the following error:
I think this is related to this issue, as the file can not be uploaded chunked yet, isn't it? |
Upstream issues:
|
Streamed uploads are implemented in |
It would be sometimes very nice to be able to PUT a large file without buffering it first.
And it seems that requests supports the chunked encoding well: http://docs.python-requests.org/en/latest/user/advanced/#chunk-encoded-requests
Creating a generator in
_body_from_file
if a--chunked
option is set seems simple enough, but I guess something would have to be done for--print=B
to work (or maybe suppress the output with a reasonable message - since the (or at least my) use case would be large, generally binary, files).The text was updated successfully, but these errors were encountered: