Your workflow is unique 👨‍💻 -  tell us how you use Dropbox here.

Forum Discussion

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

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 and Feedback

Node avatar for Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.

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!