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
6 years agoExplorer | Level 3
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"
- TaylorKrusenDropbox Staff
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.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,915 PostsLatest Activity: 5 hours agoIf you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!