in order to upgrade my app to Dropbox 2 I was trying upload and download festures.
While download seems to work I have some problems with uploading.
I am working with textual file with a small size, maximum 1 MB.
I followed the tutorial but after the upload is finished I only see on dropbox an empty small file of about 190 byte. It seems it is not able to upload the content of the file. Here is my code where db is the path of the file to upload. Thanks very much or the help.
I can't see what `db` is in your code, but the rest of the code doesn't look obviously wrong. To troubleshoot this, can you first check whether or not `fileData` has the expected length when calling `uploadData`?