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: 

How to get the upload progress for p Dropbox?

How to get the upload progress for p Dropbox?

Suporte DES B.
New member | Level 1

I need to get the progress of the upload to Dropbox to mount a progress bar (JProgressBar).
Is how to do this or do I have to give a manipulated into things? hehehe

13 Replies 13

Chris R.
Collaborator | Level 10

All they give is an estimate of remaining time to sync files ("Syncing [2 files remaining, 4 mins left]"), but be aware that this time estimate is highly inaccurate.

Greg-DB
Dropbox Staff

Are you referring to the Dropbox desktop client, or an app you made that uses the Dropbox API? If it's the later, what SDK/library are you using?

Ray F.11
New member | Level 2

I would like to expose a progress bar on my iOS app using the SwiftyDropbox API to upload a file.  

Currently I can only update the progress bar when a file completes a upload so the resolution is very poor.  Is there a way to get finer detail about bytes transferred periodically.  

The only way I can think about doing this is to use the session upload.  I don't see this as being a great solution.  It would be great if there were an example of doing this somewhere (i.e. splitting up the file, and sending it using a session.)

Greg-DB
Dropbox Staff

Ray, I have a sample of registering a progress callback for files.download in SwiftyDropbox here:

https://stackoverflow.com/questions/35659454/swiftydropbox-download-progress/35659995#35659995

It should work the same way for files.upload.

There's also a sample of using upload sessions here:

https://gist.github.com/smarx/4bd20487ddf37a5942bf

Ray F.11
New member | Level 2

Thanks Gregory!

Girum S.
New member | Level 1

its so annoying to see no progress bar ....the time is so so so so so in accurate its been 3 min for 3 hours now. i don`t know what kind of watch they are using

 

Greg-DB
Dropbox Staff

Hi Girum, this thread is posted in the "API Development" forum, for programmers using the Dropbox API. 

It sounds like you're trying to share some feedback regarding one of the Dropbox apps, so you'd be better served by opening a new thread in the "Production Feedback" forum:

https://www.dropboxforum.com/hc/en-us/community/posts/new?community_post%5Btopic_id%5D=200209235

Elina
New member | Level 2

In dropbox-core-sdk-2.1.1, how to get the progress of the upload

Greg-DB
Dropbox Staff
Hi Elina, the Dropbox Java SDK doesn't currently offer transfer progress information like this, but I'll be sure to pass this along as a feature request. You can find more information, including a possible workaround, here:

https://github.com/dropbox/dropbox-sdk-java/issues/66
Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    Girum S. New member | Level 1
  • User avatar
    Ray F.11 New member | Level 2
What do Dropbox user levels mean?