cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

swifty dropbox download cancel

swifty dropbox download cancel

Christian T.16
New member | Level 1

how can I cancel a file download in progress through the API? thanks.

12 Replies 12

Greg-DB
Dropbox Staff

The override issue in 2.0.6 is fixed now in version 3.0.0.

DS6
Explorer | Level 4

Do we need to explicitly cancel the upload requests, or is it enough to release the objects by setting it to nil? Example, I have

 dbUploadTask = client?.files.uploadSessionStart(input: data)
 dbUploadTask?.response(completionHandler: { [weak self] (result, error) in

}

Then is it safe to set the object to nil while upload is in progress? Or is it necessary to call cancel() before setting it to nil?

dbUploadTask = nil

Greg-DB
Dropbox Staff

@DS6 If you want to cancel the request, you should explicitly call `cancel`. (I can't guarantee that `nil`ing the object will be sufficient.)

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    DS6 Explorer | Level 4
  • User avatar
    Jiho P. Explorer | Level 3
What do Dropbox user levels mean?