googleapis / googleapis/google-api-java-client

Resume uploads on different executions

Open
#995 3 comments 1 reaction 0 assignees View on GitHub
priority: p4 type: feature request
Dominant language
Java
Stars
1.5k
Forks
772
Avg merge
1h 44m
Merged PRs (30d)
1

Description

If I execute a resumable upload for a file, kill the process and then start it again, **there is no way to get the "upload_id"** for the first file in order to continue with the upload in a new process. This can be tested with the `DriveSample` class on GitHub samples.

The class `MediaHttpUploader` creates and maintains a `currentRequest` (`uploadType=resumable&upload_id=...`) during one execution of `resumableUpload(GenericUrl)`. However, there is no way to obtain and maintain that information for future processes.

My intention is to upload backup files in the background. If the user closes my application, I should be able to continue with the upload when the user starts the application again.

Original post: [Issue 4131](https://code.google.com/a/google.com/p/apps-api-issues/issues/detail?id=4131).
Similar question [here](http://stackoverflow.com/questions/25288849/resumable-uploads-google-drive-sdk-for-android-or-java).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.