You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

Pickle_People's avatar
Pickle_People
Explorer | Level 3
6 years ago

Getting direct download link to each file inshared link contents

Hello all,
We are using Dropbox Javascript SDK to access a shared folder link in our AngularJS application.
However after we get the contents of the shared folder using dbx.filesListFolder we get the files and subfolders as expected. But we want to get direct download links to all the files inside this shared folder. For each file on the list we get around 10 parameters but we don't get an URL parameter for a direct link or something similar. The only parameter which is kind of unique is "id" which I hope we somehow can get a direct download link from it using some SDK function.

Do you have an idea how we can get a direct download lnk to a file using its "id" parameter?
Note: the format of the ID is something like this: "id:SPneIcnRl4AAAAAAAAU5dA"

  • You're on the right track. 

    Once you have the file's id, you can pass that to the filesGetTemporaryLink() method in the JavaScript SDK. You'll need to generate a new download link for each file individually.