cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to know all about tools for creatives that work seamlessly with Dropbox, like Adobe? Well, check it out right 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*.

Poll
Do you work or study in the creative industry? If so, which area?
If you use Adobe, don't forget to check out our latest integrations update here.
Who's talking

Top contributors to this post

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