gesomax / httplib2

Automatically exported from code.google.com/p/httplib2
0 stars 0 forks source link

Does httplib2 support file upload? #37

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I have read the doc, and it seems httplib2 does not support file upload.

Original issue reported on code.google.com by fangzhou...@gmail.com on 26 Oct 2008 at 1:19

GoogleCodeExporter commented 8 years ago
It should be possible, even relatively easily. You just need to build your own
multipart post request. It's a bit problematic that httplib2 doesn't support
iterators tough.

Original comment by ve...@gmx.ch on 27 Oct 2008 at 11:24

GoogleCodeExporter commented 8 years ago
Right -- actually, not supporting iterators is a huge barrier that means that 
you 
need to load the entire file into memory before upload.

Original comment by jamiesonbecker@gmail.com on 25 Nov 2008 at 8:39

GoogleCodeExporter commented 8 years ago
Correct, the multipart body must be built and passed as the body= parameter.

Original comment by joe.gregorio@gmail.com on 13 Jun 2011 at 5:54

GoogleCodeExporter commented 8 years ago

Original comment by joe.gregorio@gmail.com on 13 Jun 2011 at 5:55