Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
GustavoLeopoldo
3 years agoExplorer | Level 3
Download XLSX files from Dropbox API using NodeJS
Hi Community,
I'm having some issues to download XLSX files from Dropbox API using NodeJs. The response is ok (200), but I need to use content-Type as binary or Txt. I would like to download the XL...
- 3 years ago
GustavoLeopoldo wrote:... The response is ok (200), but I need to use content-Type as binary or Txt. ...
Hi GustavoLeopoldo,
Since you have successfully received your data, you don't need to observe what's the actual transfer type (content-type). This same content is saved as is in your response object as binary/blob and you can do the same like you can to any other such object (i.e. to save as a file, process it, etc.). Just do it; it's not clear what's the actual issue. There is a bunch of data matching exactly to the file downloaded. It's your decision how you would interpret them (text, binary, etc.). The result contains metadata too and it might help you define actual data type.
Hope this helps.
Add: Here is a simple example how a file could be saved. Good luck.
Здравко
3 years agoLegendary | Level 20
GustavoLeopoldo wrote:... The response is ok (200), but I need to use content-Type as binary or Txt. ...
Hi GustavoLeopoldo,
Since you have successfully received your data, you don't need to observe what's the actual transfer type (content-type). This same content is saved as is in your response object as binary/blob and you can do the same like you can to any other such object (i.e. to save as a file, process it, etc.). Just do it; it's not clear what's the actual issue. There is a bunch of data matching exactly to the file downloaded. It's your decision how you would interpret them (text, binary, etc.). The result contains metadata too and it might help you define actual data type.
Hope this helps.
Add: Here is a simple example how a file could be saved. Good luck.
- GustavoLeopoldo3 years agoExplorer | Level 3
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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!