Export to GitHub

googlecl - issue #186

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


Posted on Jun 29, 2010 by Swift Giraffe

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

Comment #1

Posted on Jun 29, 2010 by Helpful Cat

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

Comment #2

Posted on Jun 29, 2010 by Swift Giraffe

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.

Comment #3

Posted on Jul 23, 2010 by Helpful Cat

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.

Status: Fixed

Labels:
Type-Defect Priority-Medium