提示用户保存从Dropbox下载的内容 [英] Prompt user to save on download from Dropbox
本文介绍了提示用户保存从Dropbox下载的内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想有一个链接,可从Dropbox下载文件,提示用户而不是在浏览器中显示文件。这可能需要将内容处置标头设置为附件。
I want to have a link to download a file from Dropbox that prompts the user instead of displaying the file in the browser. This probably requires setting a content-disposition header to 'attachment'.
我目前正在使用保管箱媒体URL,如下所述:
I'm currently using the dropbox media URL as described here:
https://www.dropbox.com/developers/reference/ api#media
似乎我的另一种选择是创建代理,但我显然想避免这种情况。
It seems my alternative might be to create a proxy, but I'd obviously like to avoid that.
是否可以通过直接的Dropbox链接获得此行为?
Is there a way to get this behavior from a direct Dropbox link?
推荐答案
找到了答案
此处记录:
https://www.dropbox.com/help/201
只需将dl = 1添加到网址。
just add dl=1 to the URL.
这篇关于提示用户保存从Dropbox下载的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文