I want help with https://stackoverflow.com/q/51001177/3719167
In short, I am using Dropbox in my Django application to upload pdf files. And want to embed it in the template to display the pdf file.
I'm using django-storage plugin which generates url as
https://dl.dropboxusercontent.com/apitl/1/AABFKaNX1E-drlfT9zeL1MQZDgTygqQV9BTyAh-1CsE6vbJi9Fyk1RfmE5IGRNSeBksOKtQZnYBUO0peR7WGMVvc8_L75p7sezxJqGTYZnsOpL68cJnliYSrtrq25J6IFug3R_G-_6FPRXPKb1X_MdlpG6NoS2bcfSKN9RRletzeKxBlrW3bzXyCeJOzBoFWcMDqPjzXsTWRLAIZ2KPnlCM9XwVV8x2VKcK35P3MiNDcfYHPF3oTzezo4MDNE-L62mOhPg1A8cx2fKVhTBxAbGS-Whd7eLA25e8pxinvuZww6NM-xJYDB4cR_7JvLc8XEtbsLmcHAFvgx5Lw6MRaLPMskjsZsW2JnG84JTKefprhbpwMftrKh-JWtORKugowUB4
Can I download file usind
files_download_to_file
method using above url?
Your StackOverflow link is returning "Page Not Found". Do you still need help with this?
For reference, that '.../apitl/..' link that you generated is a temporary link that points directly to the file content. That lasts for four hours after it's created. If you have that, during those four hours you can download the file content directly using an HTTPS GET request.
The files_download_to_file method you mentioned is a method in the Dropbox API v2 Python SDK for downloading file content directly from Dropbox to a local file. You don't need a temporary link to use it. You just supply the remote path in Dropbox for the file you want, as well as the local path where you want to save it. (Alternatively, you can use files_download to download the file data to memory instead of the local filesystem.)
None of these are really specifically meant for embedding the data on your web page, but once you have the data, you can do whatever you need with it.