Issue 394 in googlecl: Unable to upload arbitrary files to Google Docs

3 views
Skip to first unread message

goog...@googlecode.com

unread,
May 21, 2011, 10:15:03 PM5/21/11
to google...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 394 by nicholas...@gmail.com: Unable to upload arbitrary files to
Google Docs
http://code.google.com/p/googlecl/issues/detail?id=394

What steps will reproduce the problem?
1. Attempt to upload a file, such as a ZIP, to Google Docs.
2. An error is returned saying only Apps Premier users can upload arbitrary
files.

What is the expected output? What do you see instead?
I expect to see the file uploaded.

Here's what happens instead:
C:\Users\Nicholas\Desktop>google docs upload --no-convert
Please specify src: somefile.zip
Loading somefile.zip
Failed to upload somefile.zip: Server responded with: 403, <errors
xmlns='http://schemas.google.com/g/2005'><error><domain>GData</domain><code>ServiceForbiddenException</code><internalReason>You
do not have permission to perform this
operation.</internalReason></error></errors>
Only Apps Premier users can upload arbitrary file types without using the
Google Docs web uploader.

What version of the product are you using? On what operating system?
googlecl-win32-0.9.13, Windows 7

Please provide any additional information below.
Google has now allowed all users to upload arbitrary file types. See this
blog post
http://googleappsdeveloper.blogspot.com/2011/05/upload-all-file-types-to-any-google.html.
A Google employee also posted that it is enabled on all accounts, seen
here:
http://code.google.com/apis/documents/forum.html?place=msg%2Fgoogle-documents-list-api%2FMdfqFMS4yHI%2FyNx8oQ_4YdIJ.

It appears that it is necessary to use the resumable upload feature to make
this work. I assume that googlecl currently doesn't use this? It'd be great
if support for uploading arbitrary files to Google Docs worked in GoogleCL.

goog...@googlecode.com

unread,
Jul 18, 2011, 5:19:00 AM7/18/11
to google...@googlegroups.com

Comment #1 on issue 394 by KanK...@gmail.com: Unable to upload arbitrary

Take a look at this:
http://code.google.com/p/googlecl/wiki/Manual#Docs
Note: Uploading arbitrary files is only possible for Apps Premier
customers, using the --no-convert option. See the FAQ.

goog...@googlecode.com

unread,
Sep 5, 2011, 4:36:23 PM9/5/11
to google...@googlegroups.com

goog...@googlecode.com

unread,
Oct 11, 2011, 7:22:35 PM10/11/11
to google...@googlegroups.com

Comment #3 on issue 394 by torquem...@gmail.com: Unable to upload arbitrary

I'm still seeing this in v0.9.13; trying without no-convert, I get messages
like so:

Loading bar.zip
Failed to upload bar.zip: Server responded with: 403, <errors
xmlns='http://schemas.google.com/g/2005'><error><domain>GData</domain><code>ServiceForbiddenException</code><internalReason>Files
must
be uploaded using the resumable upload
mechanism.</internalReason></error></errors>
You may have to specify a format with --format. Try --format=txt

Are resumable uploads supported? If not, what would be involved? The API
itself should support them and should have since May.

goog...@googlecode.com

unread,
Oct 18, 2011, 5:02:42 AM10/18/11
to google...@googlegroups.com

Comment #4 on issue 394 by TestUser...@gmail.com: Unable to upload

I am also seeing the same issue. I am trying to upload Docx,PDF with
convert = false.

goog...@googlecode.com

unread,
Nov 1, 2011, 5:59:36 PM11/1/11
to google...@googlegroups.com

Comment #5 on issue 394 by frazer.b...@gmail.com: Unable to upload

Something's changed. "google docs upload" has worked for me since the
beginning of 2011, (v 0.9.10) but has recently (in the last couple of
weeks) started reporting "Files must be uploaded using the resumable upload
mechanism." I tried with v0.9.13 - same problem. Hmmm.. something's
changed google.


goog...@googlecode.com

unread,
Nov 7, 2011, 4:22:07 AM11/7/11
to google...@googlegroups.com

Comment #6 on issue 394 by Coil...@gmail.com: Unable to upload arbitrary

This fixes the resumable uploader problem for me with gdata 2.0.14 and
Ubuntu Lucid. It probably won't work for the older versions of gdata, so
it's not commit-ready yet, but it may fix this for you.

I also had trouble with gdata 2.0.15 and haven't figured that out yet so I
haven't tried this fix with that version, either.

Attachments:
resumable_upload_fix.diff 1.3 KB

goog...@googlecode.com

unread,
Dec 9, 2011, 4:44:57 PM12/9/11
to google...@googlegroups.com
Updates:
Status: Fixed
Cc: credenti...@gmail.com

Comment #7 on issue 394 by Coilamg: Unable to upload arbitrary files to
Google Docs
http://code.google.com/p/googlecl/issues/detail?id=394

The latest commit (r587) should fix this problem. You can find it here:
http://code.google.com/p/googlecl/source/detail?r=587

After many hours of research and testing, we've discovered that not all
python-gdata versions support uploading to Google Docs. Some can only
support uploads of certain types. More info on that here:
http://code.google.com/p/googlecl/wiki/UploadingGoogleDocs

goog...@googlecode.com

unread,
Jan 24, 2012, 10:50:19 AM1/24/12
to google...@googlegroups.com

Comment #8 on issue 394 by milosgaj...@gmail.com: Unable to upload

no, this is not really fixed.
my python-gdata is python-gdata-2.0.14-1.fc16.noarch which based on the
link above should be just fine for uploading ANY file - yet googlecl still
fails anyway...

Reply all
Reply to author
Forward
0 new messages