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

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: 
Highlighted

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

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

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

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

Highlighted

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

New member | Level 1
New member | Level 1

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

Highlighted

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

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

 

Highlighted

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

Dropboxer
Dropboxer

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

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?