After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 607616 - Permit the uploading of documents of any type
Permit the uploading of documents of any type
Status: RESOLVED FIXED
Product: libgdata
Classification: Platform
Component: Google Documents service
git master
Other Linux
: Normal normal
: Drive API
Assigned To: libgdata-maint
libgdata-maint
: 607618 (view as bug list)
Depends on: 607272 607618
Blocks: 593537 656971
 
 
Reported: 2010-01-20 23:45 UTC by Thibault Saunier
Modified: 2012-04-13 15:15 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Thibault Saunier 2010-01-20 23:45:11 UTC
With the new API(V3)[1], it is possible to upload documents of any type[2].

I think that it means that the GDataDocumentsEntry class shouldn't be considered as an abstract class.

I have started to write the patch but since I can't test it, and we need to use the V3 of the GData API, I will wait to join it here.


1- http://code.google.com/apis/documents/docs/3.0/developers_guide_protocol.html#UploadingArbitraryFileTypes

2- http://googledocs.blogspot.com/2010/01/upload-and-store-your-files-in-cloud.html
Comment 1 Philip Withnall 2010-08-21 23:55:52 UTC
*** Bug 607618 has been marked as a duplicate of this bug. ***
Comment 2 Philip Withnall 2010-12-08 13:45:36 UTC
(Only available for Google Apps for Business accounts.)
Comment 3 Philip Withnall 2011-05-03 07:46:33 UTC
As per http://code.google.com/apis/documents/changelog.html#release-2011-02, this feature is now being rolled out to all Google accounts.
Comment 4 Philip Withnall 2012-04-13 15:15:13 UTC
Fixed on master. Breaks the new resumable upload API, but that hasn’t yet been in a release, so it’s OK.

commit 8fd2cf3963d25eb97014ddb3f234c2bf8cad6261
Author: Philip Withnall <philip@tecnocode.co.uk>
Date:   Fri Apr 13 13:14:54 2012 +0100

    Bug 607616 — Permit the uploading of documents of any type
    
    Add support to GDataDocumentsUploadQuery for specifying that documents
    shouldn’t be converted to common formats on being uploaded. This permits
    arbitrary files to be uploaded.
    
    This includes test cases.
    
    API additions:
     • GDataDocumentsUploadQuery:convert,
       gdata_documents_upload_query_get_convert and
       gdata_documents_upload_query_set_convert
    
    Closes: https://bugzilla.gnome.org/show_bug.cgi?id=607616

 docs/reference/gdata-sections.txt                  |    2 +
 gdata/gdata.symbols                                |    2 +
 gdata/services/documents/gdata-documents-service.c |   54 +++---
 .../documents/gdata-documents-upload-query.c       |  189 +++++++++++++++++++-
 .../documents/gdata-documents-upload-query.h       |    3 +
 gdata/tests/documents.c                            |  152 ++++++++++++----
 6 files changed, 341 insertions(+), 61 deletions(-)

commit c8eca065e5f3f11d0ec8c7aac497e19f7d07469e
Author: Philip Withnall <philip@tecnocode.co.uk>
Date:   Fri Apr 13 00:21:51 2012 +0100

    documents: Split upload parameters out into GDataDocumentsUploadQuery
    
    This new object currently only specifies the destination folder for an
    upload (replacing the folder argument to
    gdata_documents_service_upload_document_resumable()), but will in future
    allow specifying things like the ‘convert’ and OCR parameters for uploads.
    
    API additions:
     • GDataDocumentsUploadQuery and its methods
    
    API breaks:
     • gdata_documents_service_upload_document_resumable()
    (Note that this API hasn’t yet been in a libgdata release, so this isn’t
    a real API break.)
    
    Helps: https://bugzilla.gnome.org/show_bug.cgi?id=656971

 Makefile.am                                        |    4 +-
 docs/reference/gdata-docs.xml                      |    1 +
 docs/reference/gdata-sections.txt                  |   21 ++
 gdata/gdata.h                                      |    1 +
 gdata/gdata.symbols                                |    5 +
 gdata/services/documents/gdata-documents-service.c |   48 +++--
 gdata/services/documents/gdata-documents-service.h |    4 +-
 .../documents/gdata-documents-upload-query.c       |  235 ++++++++++++++++++++
 .../documents/gdata-documents-upload-query.h       |   75 +++++++
 gdata/tests/documents.c                            |   13 +-
 10 files changed, 381 insertions(+), 26 deletions(-)