cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox 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: 

Re: 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?