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

kmsbs's avatar
kmsbs
Explorer | Level 4
7 years ago

My uploaded files on Dropbox are 0 bytes/ empty.

I have an app,In this app we are using dropbox v2 for upload or download  a file. I uplaoded a file but it shown as a empty file and 0 byte.
  • Greg-DB's avatar
    Greg-DB
    7 years ago

    kmsbs In your code, you're actually calling `uploadAndFinish` twice; once on its own, and then again inside your `Log.e` call. When you call the second time, the `inputStream` is consumed, so you end up uploading a zero byte file. Update your code to only do the upload once.