It looks like you have the Dropbox part of this itself working, so I don't think I can offer to much help with the part that you're currently stuck on. In the case of using 'filesDownloadZip', that data is the actual raw data for the zip file containing the requested folder. (If running in browser JavaScript, it would be in the 'fileBlob' field.) In either case, when performing a download call like this in Node, if the call succeeds the resulting data is in the 'fileBinary' field. (If you only wanted a single file, you would use the 'filesDownload' method. If you want to get a zip of a folder on Dropbox, the 'filesDownloadZip' method you already found is the right method. How can I download the zip file out of this data? I've also posted this question on StackOverflow Window.open(JSON.stringify(data.fileBinary)) Here's my Backend code that's interacting with api:Ĭonst downloadZip = async (req, res) => ) I am using Node/Express Server and React on front-end. I am able to get the Binary data from API, But still unable to download the file. I know there's filesDownloadZip() available for that. I want to download the folder in my dropbox as a zip file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |