We’re aware of an issue causing slower load times on the Dropbox Community forum. It should be resolved soon. Thanks for your patience! 

Forum Discussion

Justas S.'s avatar
Justas S.
New member | Level 1
11 years ago

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

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

Replies have been turned off for this discussion
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    11 years ago

    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.

  • Justas S.'s avatar
    Justas S.
    New member | Level 1
    11 years ago

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

  • NagiReddy J.'s avatar
    NagiReddy J.
    New member | Level 2
    10 years ago

    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

     

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!