dorosh / gdata-python-client

Automatically exported from code.google.com/p/gdata-python-client
0 stars 0 forks source link

Use the resumable uploader for picasa uploads #577

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use googlecl to upload a >100MB video to Picasa. 

What is the expected output? What do you see instead?
Expected: success. Actual: Failed to upload /tmp/tmp.P0at6HDg9Z.mp4. (413: 
Request Entity Too Large)

What version of the product are you using?
2.0.14

Original issue reported on code.google.com by agoode on 30 Dec 2011 at 9:53

GoogleCodeExporter commented 9 years ago

Original comment by afs...@google.com on 30 Dec 2011 at 10:56

GoogleCodeExporter commented 9 years ago
According to 
http://code.google.com/p/youtube-direct/source/browse/trunk/ytd/src/com/google/y
td/picasa/PicasaApiHelper.java?r=583#65,

the URL should be:
http://picasaweb.google.com/data/upload/resumable/photos/create-session/feed/api
/user/%s/albumid/%s

Original comment by agoode on 2 Jan 2012 at 4:25

GoogleCodeExporter commented 9 years ago
Here's a hackish and fugly, but functional patch to support resumable uploads 
for picasa, at least.  It can certainly be made generic and extended to google 
docs, youtube and so forth.

Original comment by hanse...@gmail.com on 19 Nov 2012 at 8:54

Attachments:

GoogleCodeExporter commented 9 years ago
This is a great patch, but there is already generic resumable upload support in 
the library, used by docs service, which should try to be reused.

Original comment by afs...@google.com on 19 Nov 2012 at 8:59

GoogleCodeExporter commented 9 years ago
Do you have any suggestions on what would need to be done to use the docs code? 
 It looks like the Picasa code still implements a 'service' instead of the 
'client' that the ResumableUpload is plumbed in to.  The python object 
organization is a bit beyond me.  

Original comment by hanse...@gmail.com on 20 Nov 2012 at 12:38

GoogleCodeExporter commented 9 years ago
Oh dear, you are right. Best solution is to move to the client architecture, 
but that is a huge change that I wouldn't want to wish on you. Ok, then I will 
give this a proper review. Can you please use the upload-diffs.py script to 
send me a code review.

Original comment by afs...@google.com on 20 Nov 2012 at 12:56