cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close

Discuss Dropbox Developer & API

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

Cance File Upload

New member | Level 2
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
Highlighted

Re: Cance File Upload

Dropboxer
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*.

Polls
Do you know how to organize your files and folders?
We have created a guide on folder best practice, so you can get organized now check it out here.

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?