Is there a way to get "Direct File Links" from Dropbox in android code without using the Dropbox API's?
I searched a lot on this but did not find a solution. Any responses will be appreciated.
get the file link for exemple https://www.dropbox.com/s/blablabla/test.pdf
replace www by dl
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With