cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to know what we learned at IBC? Check out our learnings on media, remote working and more right here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Getting direct download link to each file inshared link contents

Getting direct download link to each file inshared link contents

Pickle_People
Explorer | Level 3

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"

1 Reply 1

TaylorKrusen
Dropbox 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. 

 

 

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    TaylorKrusen Dropbox Staff
What do Dropbox user levels mean?