GNOME Bugzilla – Bug 607272
Support automatic upload resuming
Last modified: 2018-09-21 16:13:14 UTC
http://code.google.com/apis/documents/docs/3.0/developers_guide_protocol.html#ResumableUpload If the connection is dropped while uploading, libgdata should automatically resume until the file is successfully uploaded. Might want to be able to impose a limit on the number of attempts, though.
Resumable upload documents have moved here: http://code.google.com/apis/gdata/docs/resumable_upload.html
Basic support for resumable uploads/updates of documents is now in place. However, support for automatically retrying failed chunks isn't done yet. Keeping the bug open for that. commit 6e8499dfbdb6029b7797ae31957b87f688a88482 Author: Philip Withnall <philip@tecnocode.co.uk> Date: Mon Apr 2 15:12:35 2012 +0100 documents: Add support for resumable uploads and updates This adds support for resumable uploads and updates to the Documents API. In doing so, it was necessary to wade through a sea of bugs and documentation inadequacies in the GData protocol (thanks, Google). In the end, it all seems to work (ignoring the pile of hacks to handle differences between non-resumable and resumable uploads’ handling of metadata; and the bugs in content-only uploads). It’s worth noting that this is only a basic implementation of resumable upload/update. It does not, for example, automatically retry chunks of uploads which fail. That can come later. A new, expanded set of test cases for uploads/updates is included. New API: • gdata_documents_service_upload_document_resumable() • gdata_documents_service_update_document_resumable() Helps: https://bugzilla.gnome.org/show_bug.cgi?id=607272 Helps: https://bugzilla.gnome.org/show_bug.cgi?id=593537 docs/reference/gdata-sections.txt | 2 + gdata/gdata-upload-stream.c | 26 +- gdata/gdata.symbols | 2 + gdata/services/documents/gdata-documents-service.c | 289 +++++++- gdata/services/documents/gdata-documents-service.h | 8 + gdata/tests/documents.c | 807 +++++++++++--------- 6 files changed, 742 insertions(+), 392 deletions(-) commit f91c994f0f6f5f96ea7765e75ecc1ce393f9b61b Author: Philip Withnall <philip@tecnocode.co.uk> Date: Tue Dec 20 20:40:16 2011 +0000 core: Extend GDataUploadStream with support for resumable uploads This adds the following API: • gdata_upload_stream_new_resumable() • GDataUploadStream:content-length, gdata_upload_stream_get_content_length() Helps: https://bugzilla.gnome.org/show_bug.cgi?id=607272 docs/reference/gdata-sections.txt | 4 + gdata/gdata-upload-stream.c | 515 ++++++++++++++++++++++++++++++------- gdata/gdata-upload-stream.h | 30 +++ gdata/gdata.symbols | 2 + gdata/tests/common.c | 19 +- gdata/tests/common.h | 1 + gdata/tests/streams.c | 443 +++++++++++++++++++++++++++++++ 7 files changed, 920 insertions(+), 94 deletions(-)
http://git.gnome.org/browse/libgdata/commit/?id=f91c994f0f6f5f96ea7765e75ecc1ce393f9b61b maybe broke the string freeze, however not sure as libgdata does not use the "gnome-3-x" branch scheme. String is: "Error received from server after uploading a resumable upload chunk."
(In reply to comment #3) > http://git.gnome.org/browse/libgdata/commit/?id=f91c994f0f6f5f96ea7765e75ecc1ce393f9b61b > maybe broke the string freeze, however not sure as libgdata does not use the > "gnome-3-x" branch scheme. > > String is: > "Error received from server after uploading a resumable upload chunk." (Resolved by branching for libgdata-0-12 before these commits. These commits will now be released in libgdata 0.13.0.)
Latest documentation (Drive API): https://developers.google.com/drive/web/manage-uploads#resumable
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/libgdata/issues/3.