Get public url from file path in dropbox

kyurkchyan picture kyurkchyan · Jul 22, 2013 · Viewed 27.9k times · Source

Suppose I have dropbox account, and I have shared folder their, for instance the name of the shared folder is "SampleFolder". And inside that folder I have folder and file hierarchy, which also is shared being inside a shared folder. How can I having SampleFolder url and knowing the file path that I want to download easily get it's url either by Dropbox Core API or just know the way the urls are constructed and construct the url by hand. For instance I want to download file in path SampleFolder/Folder1/Folder2/image.png, how can I get the url of that file knowing only the url of SampleFolder? Let me note that I don't want to login into dropbox, here there is a get method for retrieving file by it's path, but it requires authorisation. Basically I want a public place of storing files, and in my code downloading them by their urls.

Thanks for the answers.

Answer

Nathan picture Nathan · Jan 21, 2014

[Addition Aug2017: This method has been disabled by Dropbox for all users. See https://www.dropbox.com/en/help/files-folders/public-folder]

See https://www.dropbox.com/help/16/en towards the bottom under "Creating a Public folder"

While newer accounts do not have the Public Folder enabled, it is possible to enable it by going to this link when logged into that account: https://www.dropbox.com/enable_public_folder

Then you can follow the path to the file after https://dl.dropbox.com/u/<user id>/