using filesDownload() does not work
Hi there, I am trying to make a simple web client of Dropbox using the JavaScript SDK, and when I call filesDownload() it doesn't work. I don't want to use the Shared-link method wich I read about How can I solve it?
Hi, I use filesDownload() in v4.0.14 and it works for me.
Think you need to provide more info about your issue e. g.
- Steps to reproduce a problem along with code sample and example of path used.
- Expected behaviour
- Actual behaviour along with error logs
Or maybe you can write a question on StackOverflow
Are you sure your paths are correct and files exist on dropbox? Are you using regular or business account? Are you trying to access files in your home path or root path (in case you're using business account)? Files in root path (outside of your home folder) won't be accessible until we merge #230
I use Typescript but that shouldn't matter in this case, below is a sample of working Typescript code
return await this.dropbox.filesDownload({ path: path }).then(data => {
const blob: Blob = (<any>data).fileBlob;
// ... code to download blob is called here
});
https://stackoverflow.com/questions/53801974/download-file-with-dropbox-api-js
Answered on stackOverflow, I think we should close this as this is not a library issue
[Cross-linking for reference: https://www.dropboxforum.com/t5/API-Support-Feedback/download-file-API-JS/m-p/318147 / https://stackoverflow.com/questions/53801974/download-file-with-dropbox-api-js ]
Thanks Bohdan! Yes, filesDownload works just like sharingGetSharedLinkFile and it doesn't sound like there's an actual library bug here, so I'll close this issue in favor of the StackOverflow post.
The stackoverflow link is dead and this link is still widely referenced online