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

Termiant or Abort #64

Open
sn026628 opened this issue Jun 10, 2022 · 1 comment
Open

Termiant or Abort #64

sn026628 opened this issue Jun 10, 2022 · 1 comment
Labels

Comments

@sn026628
Copy link

Question

  1. In tus android library , how we can terminate or abort a on going upload from client side ?
  2. While a upload is in process, when I try to send a delete request, i get response 423 file currently locked. How to resolve

Setup details
Please provide following details, if applicable to your situation:

  • Runtime environment: [e.g. Android version, etc.]
  • Used tus-android-client version: v0.1.10
  • Used tus-java-client version: v0.4.2
  • Used tus server software: tusd
@Acconut
Copy link
Member

Acconut commented Jun 17, 2022

  1. In tus android library , how we can terminate or abort a on going upload from client side ?

tus-java-client currently has no method to terminate or delete an upload. You would have to send the HTTP DELETE request on your own.

2. While a upload is in process, when I try to send a delete request, i get response 423 file currently locked. How to resolve

You first have to stop the upload and wait for the PATCH request to be over. Have a look at the example application: https://github.com/tus/tus-android-client/blob/master/example/src/main/java/io/tus/android/example/MainActivity.java The logic behind the pause button shows how to interrupt and stop the tus upload. After waiting for a short delay, you can send your DELETE request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants