Skip to content
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

Closed
wonderfly opened this issue Jan 10, 2015 · 8 comments
Closed

Ability to cancel a media upload in progress #685

wonderfly opened this issue Jan 10, 2015 · 8 comments
Assignees
Labels
imported priority: p2 Moderately-important priority. Fix may not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@wonderfly
Copy link
Contributor

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

@wonderfly wonderfly added type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. imported priority: p2 Moderately-important priority. Fix may not be included in next release. 2–5 stars labels Jan 10, 2015
@wonderfly
Copy link
Contributor Author

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

@wonderfly wonderfly self-assigned this Jan 10, 2015
@wonderfly
Copy link
Contributor Author

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

@wonderfly
Copy link
Contributor Author

From yan...@google.com on January 17, 2013 19:15:39

Labels: -Milestone-Version1.14.0 Milestone-Version1.15.0

@wonderfly
Copy link
Contributor Author

From yan...@google.com on January 20, 2013 05:57:12

Labels: -Milestone-Version1.15.0 Milestone-Version2.1.0

@wonderfly
Copy link
Contributor Author

From yan...@google.com on February 06, 2013 16:05:10

Labels: -Milestone-Version2.1.0 Milestone-Version1.16.0

@wonderfly
Copy link
Contributor Author

From yan...@google.com on June 10, 2013 06:26:28

Owner: pele...@google.com
Labels: -Milestone-Version1.16.0 Milestone-Version1.17.0

@wonderfly
Copy link
Contributor Author

From ngmic...@google.com on September 03, 2013 13:06:47

Labels: -Milestone-Version1.17.0 Milestone-Version1.18.0

@wonderfly
Copy link
Contributor Author

From yan...@google.com on September 27, 2013 05:04:05

Labels: -Milestone-Version1.18.0

@wonderfly wonderfly removed their assignment May 19, 2016
@JustinBeckwith JustinBeckwith self-assigned this Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
imported priority: p2 Moderately-important priority. Fix may not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

2 participants