upload to folder in google docs?

107 views
Skip to first unread message

hob

unread,
Jun 19, 2010, 4:01:59 AM6/19/10
to GoogleCL Discuss
Hi,

im trying to upload a document to a folder in google docs
the folder exists
command that dont work:
google docs add --user=acc...@gmail.com --folder=test filename.txt
google docs add --user=acc...@gmail.com --folder="test" filename.txt

the file gets uploaded but not in the correct folder

any ideas?

Ferran

unread,
Jun 19, 2010, 8:19:46 PM6/19/10
to GoogleCL Discuss
It seems that have not been implemented.

The member "upload_docs" on class DocsServiceCL (googlecl\docs
\service.py) only takes two arguments: "paths" and "title".


On 19 Juny, 10:01, hob <peter.oo...@gmail.com> wrote:
> Hi,
>
> im trying to upload a document to a folder in google docs
> the folder exists
> command that dont work:
>  google docs add --user=acco...@gmail.com --folder=test filename.txt
>  google docs add --user=acco...@gmail.com --folder="test" filename.txt

Tom Miller

unread,
Jun 20, 2010, 2:16:30 PM6/20/10
to GoogleCL Discuss
Sorry, that feature was accidentally deleted while making it backwards-
compatible with earlier versions of the gdata library.

Issue 93 (now closed) has a patch that will enable that functionality
for users with gdata library >= 2.0

Cliff Wakefield

unread,
Sep 18, 2012, 9:54:39 PM9/18/12
to googlecl...@googlegroups.com
I am using the latest 0.9.13 from SVN of GoogleCL.

When I try and upload a document to a folder that does exist it fails

$ google docs upload /tmp/all_google_staff.csv --folder 'All Google Staff' --title '20120919 - All Google Staff'
Failed to get entries: Server responded with: 400, <errors xmlns='http://schemas.google.com/g/2005'><error><domain>GData</domain><code>unsupportedQueryParam</code><internalReason>The 'max-results' parameter is not supported on this resource</internalReason></error></errors>
No folder found that matches All Google Staff
Loading /tmp/all_google_staff.csv
Upload success! Direct link: https://docs.google.com/a/<my domain>/spreadsheet/ccc?key=0AroYzdCI2ZXKdE9mS1FWYkRwZ3QzQzdLX3B6UE0yNlE

Any ideas?

Jason Holt

unread,
Sep 19, 2012, 1:42:05 AM9/19/12
to googlecl...@googlegroups.com

Looks like more breakage with the python gdata 2.0.15 and later releases.  2.0.14 may be a workaround for you until we can figure out what undocumented change they made to folders.

Sent from my android

Reply all
Reply to author
Forward
0 new messages