cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Whether you are transferring a single drive, a team or an entire organization, Movebot's cloud migration tool has been built to make your Dropbox migration simple - learn all about it here.

Discuss Dropbox Developer & API

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

Cance File Upload

Cance File Upload

Jaiz
New member | Level 2

I wanted to know the concept behind the file-upload cancel. How the api call is being made to cancel the upload.

1 Reply 1

Re: Cance File Upload

Greg-DB
Dropboxer

To upload a small file via the Dropbox API, an app would use the /2/files/upload endpoint. The upload is sent via an HTTPS connection to that endpoint, sending the file data in the request body. To cancel an upload, the app would suspend the HTTPS request while in progress. If the app is using an SDK or library, the SDK/library may abstract this away and offer the app a cancel method that would do this.

For larger files, an app would use the /2/files/upload_session/* endpoints. For those, any ongoing request could be suspended; it would also be sufficient to just not perform the final step of "committing" the file using /2/files/upload_session/finish*.

Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?