Getting Direct File Links from Dropbox

荒凉一梦 提交于 2019-12-05 14:25:29
Bilel Boulifa
  1. get the file link for exemple https://www.dropbox.com/s/blablabla/test.pdf

  2. replace www by dl

  3. add ?dl=1 to the end

result of our example: https://dl.dropbox.com/s/blablabla/test.pdf?dl=1

Get the Dropbox link. Something like:

https://www.dropbox.com/s/abcdefg1234567/image.jpg?dl=0

Now replace the part after the ? with raw=1

https://www.dropbox.com/s/abcdefg1234567/image.jpg?raw=1

Paste in a browser and press Enter. That will redirect you to the actual file link. Something like:

https://dl.dropboxusercontent.com/content_link/aBcdEfGHiJ1234567890/file

Be careful to always use the raw=1 link though. The dl.dropboxusercontent.com that you are redirected to has a limited shelf life and will expire.

You can use the Chooser: https://www.dropbox.com/developers/dropins/chooser/android. It will present UI to the user to let them choose a file, and then it will give your app a URL you can use to download the file, or just the file content itself.

Get the share link of the file:

https://www.dropbox.com/s/abcdefg1234567/image.jpg?dl=0

At the end, replace dl=0 to dl=1:

https://www.dropbox.com/s/abcdefg1234567/image.jpg?dl=1
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!