We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

pmsmm's avatar
pmsmm
New member | Level 2
6 years ago

Dropbox API V2 Silent Upload Death [Java] [Android]

I'm integrating the dropbox API in a college project in which I'm required to upload text files and download them (Which I have done with success) and I'm also required to upload and download photos. While trying to upload photos, I use the same exact logic for the text files and when I reach the line:

 

mDbxClient.files().uploadBuilder(remoteFolderPath + "/" + remoteFileName).withMode(WriteMode.OVERWRITE).uploadAndFinish(inputStream);

The debugger just dies, no exception is thrown, the application keeps on running normally but the photo is never uploaded.

Can you please  help me solve this issue?

  • Nevermind, the lack of feedback was making me assume that the call never returned, it returned "shortly" after and the image got uploaded successfuly.

  • pmsmm's avatar
    pmsmm
    New member | Level 2

    Nevermind, the lack of feedback was making me assume that the call never returned, it returned "shortly" after and the image got uploaded successfuly.

    • Greg-DB's avatar
      Greg-DB
      Icon for Dropbox Staff rankDropbox Staff

      I'm glad to hear you sorted this out already.

      By the way, the uploadAndFinish method returns a `FileMetadata` when it successfully runs, so you can programmatically check that return value for details on the uploaded file.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,877 PostsLatest Activity: 12 months ago
326 Following

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 or Facebook.

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!