You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 18, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 18, 2026. It is now read-only.
Impossible to interrupt a long-running media item upload #30
PhotosLibraryClient.uploadMediaItem() is blocking uninterruptibly until the upload is complete. In a UI app it means the user is unable to cancel the upload process without killing the app.
We are currently working on some major improvements to the upload flow in the client library - in particular around retries and error handling. This sounds like something that should be considered as well.
You can also configure a timeout for upload calls that cancels any in-progress requests.
(Ideally, calling .cancel(..) on the ApiFuture returned by making a call through the PhotosLibraryClient#uploadMediaItemCallable() should interrupt and cancel the upload. This is something we are looking at improving.)
You should now be able to cancel (and interrupt) long running media uploads. Please file a new issue if you are having issues with this behaviour after upgrading to the latest version.
PhotosLibraryClient.uploadMediaItem()is blocking uninterruptibly until the upload is complete. In a UI app it means the user is unable to cancel the upload process without killing the app.Related to ylexus/jiotty-photos-uploader#23