We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

GustavoLeopoldo's avatar
GustavoLeopoldo
Explorer | Level 3
2 years ago

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...
  • Здравко's avatar
    2 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.