Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using filesDownload() does not work #229

Closed
erik-121 opened this issue Dec 15, 2018 · 5 comments
Closed

using filesDownload() does not work #229

erik-121 opened this issue Dec 15, 2018 · 5 comments

Comments

@erik-121
Copy link

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?

@Bohdan-Tereta
Copy link
Contributor

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.

  1. Steps to reproduce a problem along with code sample and example of path used.
  2. Expected behaviour
  3. 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
});

@erik-121
Copy link
Author

@Bohdan-Tereta
Copy link
Contributor

Answered on stackOverflow, I think we should close this as this is not a library issue

@greg-db
Copy link
Contributor

greg-db commented Dec 17, 2018

[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.

@greg-db greg-db closed this as completed Dec 17, 2018
@togakangaroo
Copy link

The stackoverflow link is dead and this link is still widely referenced online

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants