tus-android-client icon indicating copy to clipboard operation
tus-android-client copied to clipboard

Termiant or Abort

Open sn026628 opened this issue 3 years ago • 1 comments

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

sn026628 avatar Jun 10 '22 06:06 sn026628

  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.

Acconut avatar Jun 17 '22 10:06 Acconut