New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to cancel a media upload in progress #685
Comments
From yan...@google.com on December 03, 2012 08:06:38 I filed a feature request for cancelling HTTP requests: https://code.google.com/p/google-http-java-client/issues/detail?id=172 |
From mich...@benesty.fr on December 24, 2012 02:04:35 Hi, In the StackOverflow answer, it is advised to use interrupt function. When I use it against the thread where is executed the upload, nothing happens too. May be it should be included in the feature to come. Regards |
From yan...@google.com on January 17, 2013 19:15:39 Labels: -Milestone-Version1.14.0 Milestone-Version1.15.0 |
From yan...@google.com on January 20, 2013 05:57:12 Labels: -Milestone-Version1.15.0 Milestone-Version2.1.0 |
From yan...@google.com on February 06, 2013 16:05:10 Labels: -Milestone-Version2.1.0 Milestone-Version1.16.0 |
From yan...@google.com on June 10, 2013 06:26:28 Owner: pele...@google.com |
From ngmic...@google.com on September 03, 2013 13:06:47 Labels: -Milestone-Version1.17.0 Milestone-Version1.18.0 |
From yan...@google.com on September 27, 2013 05:04:05 Labels: -Milestone-Version1.18.0 |
From yan...@google.com on December 03, 2012 07:59:32
External references, such as a standards document, or specification? http://stackoverflow.com/questions/13634894/cancel-google-drive-upload-possible http://javadoc.google-api-java-client.googlecode.com/hg/1.12.0-beta/com/google/api/client/googleapis/media/MediaHttpUploader.html http://developer.android.com/reference/android/os/AsyncTask.html Java environments (e.g. Java 6, Android 2.3, App Engine, or All)? All Please describe the feature requested. Details for the feature request can be found in the stackoverflow question above. To summarize, if user clicks Cancel on the media upload, the implementation of doInBackground() in AsyncTask is supposed to check isCancelled() to stop the current media upload. However, the implementation of MediaHttpUploader was designed to be used by a single thread, and so doesn't support this use case. We should extend it to at least support cancellation by another thread.
Similarly for media download.
We may want to extend this feature to support cancellation of any HttpRequest. I'll open a separate feature request for that in the google-http-java-client.
Original issue: http://code.google.com/p/google-api-java-client/issues/detail?id=671
The text was updated successfully, but these errors were encountered: