Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
I upload .wav file to dropbox with the following code in Android app:
DbxRequestConfig config = new DbxRequestConfig("dropbox/java-tutorial", "en_US"); mClient = new DbxClientV2(config, ACCESS_TOKEN); InputStream in = new FileInputStream(filePath); FileMetadata metadata = mClient.files().uploadBuilder("/Folder/" + FILE_NAME).withMode(WriteMode.OVERWRITE) .uploadAndFinish(in); Log.d(TAG, "Upload complete " + metadata.getRev());
And when I compare the files (origianl and uploaded) I can see that RIFF header is missing: https://www.screencast.com/t/6e3TwwypR
And as a result file without header is not reccognized and not played, i.e. corrupted.
Why does the header cut out?
Hi there!
If you need more help you can view your support options (expected response time for a 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!