GNOME Bugzilla – Bug 607616
Permit the uploading of documents of any type
Last modified: 2012-04-13 15:15:13 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
*** Bug 607618 has been marked as a duplicate of this bug. ***
(Only available for Google Apps for Business accounts.)
As per http://code.google.com/apis/documents/changelog.html#release-2011-02, this feature is now being rolled out to all Google accounts.
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(-)