salimoha / googlecl

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

use the gdata .Upload api instead of .UploadDocument/.UploadSpreadsheet #186

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I can't upload JPG as your testing file extensions. The new gdata api uses 
.Upload instead of .UploadSpreadsheet etc and should solve this.

Original issue reported on code.google.com by aagaa...@gmail.com on 29 Jun 2010 at 7:48

GoogleCodeExporter commented 9 years ago
The UploadXXX calls are to support gdata versions as early as 1.2.4. They were 
removed in the trunk in favor of the underlying call to Post.

As far as uploading JPGs, I'm not sure if the API will allow that. Please try 
the version in the repository and post on this issue with results

Original comment by tom.h.mi...@gmail.com on 29 Jun 2010 at 1:27

GoogleCodeExporter commented 9 years ago
No supported filetype found for extension jpg
Uploading as text/plain
Loading 3891.jpg
Failed to upload 3891.jpg
{'status': 400, 'body': 'Could not convert document.', 'reason': 'Bad Request'}

I found one issue that might be related here : 
http://code.google.com/p/gdata-issues/issues/detail?id=1851

That's the obj-c library, indicating it was working at some point there 
atleast. Note that the image I tested with is 32kb, so it's not a size limit.

Original comment by aagaa...@gmail.com on 29 Jun 2010 at 5:49

GoogleCodeExporter commented 9 years ago
The trunk now tries to use Upload, but we're still limited by the types allowed 
by the Docs API. Unfortunately, the error message given by a failed jpg upload 
directs you to a site with incorrect information (as far as the API is 
concerned).I added info to the FAQ on the allowed filetypes from the API.

Original comment by tom.h.mi...@gmail.com on 23 Jul 2010 at 11:43