googleapis / googleapis/google-api-java-client

Resume uploads on different executions

Đang mở
#995 3 bình luận 1 reaction 0 người được giao Xem trên GitHub
priority: p4 type: feature request
Ngôn ngữ chính
Java
Star
1.5k
Fork
772
Merge trung bình
1 giờ 44 phút
Pull request đã merge (30 ngày)
1

Mô tả

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).

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.