Dropbox.filesDownload returns corrupt data for Word Documents
See original GitHub issueWhen I use the filesDownload
function to retrieve a Word Document, the file writes successfully, but with missing bytes (rendered in a text editor as ?
). I’ve tried to decode the data into the file from binary
to utf-8
to hex
to base64
With no luck. Binary and UTF-8 encoding seem the closest to the original file bitwise, but I am nonetheless getting corrupt data back.
dbx.filesDownload({path: path})
.then(function (response) {
saveFile(null, response.fileBinary));
})
.catch(saveFile);
Note: this is on a Node Server.
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Solved: Corrupted Word Documents - Dropbox Community
Solved: I am at my wit's end! I didn't realise that DropBox would corrupt files. I now have several Word documents in a...
Read more >HTTP - Developers - Dropbox.com
The Dropbox API allows developers to work with files in Dropbox, ... request returns any of the following status codes: HTTP 400 Bad...
Read more >Customers are Getting Corrupted Files | WordPress.org
Hi,. I am using Dropbox direct download links in Woocommerce to deliver downloadable products. However, my customers are receiving corrupted ...
Read more >Fixed: Dropbox Direct Download Not Working or Failed (7 Ways)
Why can't I download files from Dropbox? ... click Relaunch, restart the browser, and then continue to complete the file download operation.
Read more >Word, Excell, & PowerPoint files suddenly corrupted, but I can
Word, Excell, & PowerPoint files suddenly corrupted, but I can open them directly from DropBox. What's going on here?
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Same issue here with PDF
v 2.5.+
v 3.0.4
Here is an example line from the file when I open it up in a text editor and compare it to the original:
Original
Response from
filesDownload
As you may see, there are missing values in this line that are not in the original.