You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

afritz a.'s avatar
afritz a.
Helpful | Level 5
8 years ago

Android, uploadBuilder, IllegalArgumentException: Value is null

I have an App named "Android Outliner" with DropBox Api2 integration. One of my customers has an issue while trying to upload a file.   fileMetadata = dbxClientV2 .files()        .u...
  • afritz a.'s avatar
    afritz a.
    8 years ago

    You were completely right, Greg. The user's setting told me that the called code was this one instead of the one I told you in the first post:

     

    fileMetadata = dbxClientV2
          .files()
          .uploadBuilder("/" + dropboxDir + "/" + file.getName())
          .withAutorename(true)
          .withMode(WriteMode.update(oldRevision))
          .withMute(false)
          .uploadAndFinish(fileInputStream);
    

     

    I did not cleanup everything correctly after the user changed his sync method from another provider to DropBox and did send a wrong oldRevision.

     

    Thanks for the quick feedback and the accurate suggestion.

     

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,910 PostsLatest Activity: 2 days ago
333 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!