We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
KennelLink
10 years agoExplorer | Level 3
Using resulting 'link' from get_temporary_link in IE new window shows about:blank
I'm trying to show a file (like .jpg or .pdf) in a new window of the browser. I'm using Internet Explorer 11 on Windows 7. I invoke get_temporary_link and use the resulting link as such: window....
akreiss
9 years agoExplorer | Level 3
Is there any further update on this? I'm experiencing the same (or a similar) issue across IE, Chrome, and Firefox. I create a temporary URL that links to something viewable in the browser like a jpg or mp3 file. I copy that into the URL bar and the browser always just downloads the file.
Also, assuming this is fixed, will there be a way to force downloads? The old v1 API /media endpoint allowed putting "?dl=1" on the end of the URL to force it to download.
KennelLink
9 years agoExplorer | Level 3
I'm hoping there's a fix for this, but in the mean time I do the following:
- Invoke sharing/create_shared_link_with_settings() which of course fails if the file has already been shared
- Invoke sharing/list_shared_links() and (I personally) use the url from the first element in the list of links
- Since the resulting URL points to the Dropbox preview page with the target file in a frame, I replace "dl=0" with "raw=1" to FINALLY get a usable URL for the file
I hope the Dropbox team realizes this is a huge endeavor just to get a temporary usable in-browser view of a file - like we used to be able to do with API v1 and it ends up poluting the shares list because I only need it temporarily and non-business accounts can't use the expiry parameter on the creating the link.
Also, some documentation of the query string arguments would be nice. I just stumbled upon the idea of changing dl=0 to raw=1 in another thread. I suspect that setting dl=1 would achieve the forced download you desire.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!