Greetings,
In a previous discussion, I solved how to upload files to pages in my app via a web form. Now I need to dynamically provide a "download" link to the file that was previously attached to that page. I'm working in PHP, and using the Javascript SDK.
Details/Workflow:
1. Page is saved to my DropBox app via Javascript/PHP form. My PHP code saves the file name for reference. This is working great!
2. Admins visit the page created in step 1 and automatically see a "Download" link to the file saved in step 1.
I'm assuming I would use the Javascript "filesDownload" function, with the file name dynamically added to the code. But I can't seem to get the basic code to make it work.
Here's the Javascript SDK link I'm looking at: https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesDownload__anchor
Can someone help me with the specific Javascript code needed for this?
Thanks,
Matthew