googleapis / googleapis/google-api-java-client
Resume uploads on different executions
- Lingua principale
- Java
- Stelle
- 1.5k
- Fork
- 772
- Merge medio
- 1h 44m
- PR unite (30g)
- 1
Descrizione
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).
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.