abujehad139 / google-api-go-client

Automatically exported from code.google.com/p/google-api-go-client
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

FileInsertCall.Convert(true) still doesn't work #66

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create quickstart.go and document.txt as per 
https://developers.google.com/drive/web/quickstart/quickstart-go
2. Change "r, err := svc.Files.Insert(f).Media(m).Do()" to "r, err := 
svc.Files.Insert(f).Media(m).Convert(true).Do()".
3. Execute "go run quickstart.go".

What is the expected output? What do you see instead?

I expected to see a file in Google Drive in native Google Docs format (and 
therefore consuming no quota).  Instead, the file showed up as a generic 
document (and therefore consuming a few bytes of quota).

What version of the product are you using? On what operating system?

I'm running Ubuntu 14.04 with the following configuration:

    $ go version
    go version go1.3.1 linux/amd64
    $ hg summary
    parent: 128:e1c259484b49 tip
     google-api-go-client: Add a Cloud Pub/Sub example.
    branch: default
    commit: (clean)
    update: 1 new changesets, 2 branch heads (merge)

Please provide any additional information below.

This issue is similar to 
https://code.google.com/p/google-api-go-client/issues/detail?id=35, but in that 
issue, the file on Drive had no content.  I'm seeing content but without the 
requested conversion to Docs format.

Performing the same code modification on the Python version (quickstart.py) 
does work.  This implies that there's probably an issue with the Go version of 
the API, but I don't see anything suspicious from a quick skim of drive-gen.go. 

-- Scott

Original issue reported on code.google.com by sc...@pakin.org on 20 Aug 2014 at 10:51