cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Are you an educator? Well we want to hear from you, so check out some tools we think might help you out 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: 

Java API: DbxClient uploadFile, is it a blocking method?

Java API: DbxClient uploadFile, is it a blocking method?

Justas S.
New member | Level 1

I upload the file I create and then delete it. For some reason the it seems the file is not found by the uploadFile method.

Does uploadFile block the current thread until the file is uploaded? If not, how can I know when is it finished?

4 Replies 4

Re: Java API: DbxClient uploadFile, is it a blocking method?

Greg-DB
Dropboxer

Yes, the uploadFile method does block until the upload is complete. It also returns the DbxEntry.File object with information on the uploaded file.

Is this not what you're seeing? If not, please post your code and output.

Re: Java API: DbxClient uploadFile, is it a blocking method?

Justas S.
New member | Level 1

Thanks Greg. In that case it seems my problem lies elsewhere.

Re: Java API: DbxClient uploadFile, is it a blocking method?

NagiReddy J.
New member | Level 2

i have a doubt that,how we are connecting to dropbox account or dropbox app using DbxClient without specifying "URL" of the dropbox..i have very much confusion abt this...pls help me..thanks in advance

 

Re: Java API: DbxClient uploadFile, is it a blocking method?

Greg-DB
Dropboxer

NagiReddy J., I don't think I understand your question. Can you start a new thread with more details? Thanks!

Poll
We love to learn from the educators who use Dropbox. Whether you teach kids, teens, adults or a combination of all three, we want to know what apps and integrations you use with Dropbox to help with teaching. Which of the ones below is your favorite, or most used tool?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
  • User avatar
    NagiReddy J. New member | Level 2
  • User avatar
    Justas S. New member | Level 1
What do Dropbox user levels mean?
Need more support?