Dropbox中国 >> Dropbox使用帮助

强制一个Dropbox文件通过web网页下载

这里有几种链接的方式,可以强制浏览器直接下载Dropbox的文件。

通过Dropbox官网预览文件

Dropbox链接默认就是让访问者预览文件,这对于分享照片和视频的操作非常有用和方便。

Render a file in your browser

现代的浏览器本身就能处理很多格式的文件,比如你访问一个图片链接,浏览器并不会下载该图片到你的桌面,而是直接访问了图片,PDF文件也会被浏览器直接打开。如果你是要这样的话,可以把Dropbox链接的www换成dl,那么就不会在Dropbox网站预览了,直接让浏览器去处理,例如下面这样:

https://www.dropbox.com/s/xttkmuvu7hh72vu/MyFile.pdf

变成:

https://dl.dropbox.com/s/xttkmuvu7hh72vu/MyFile.pdf

强制浏览器下载文件

如果你是想直接下载到本地,不需要让浏览器处理,你可以用上面的链接,再稍微变形一下,就可以让浏览器下载文件了。在URL后面加上 ?dl=1  For example:

https://dl.dropbox.com/s/xttkmuvu7hh72vu/MyFile.pdf

(记住www改成了dl)改成:

https://dl.dropbox.com/s/xttkmuvu7hh72vu/MyFile.pdf?dl=1

通过上面的链接访问,浏览器就会直接下载文档了。

Public folder links

Accounts created before July 31st, 2012 are pre-populated with a Public folder. All the functionality of Public folders (and more) is available from anywhere in your Dropbox by creating a Dropbox link.

The primary difference between Dropbox links and Public links are that unmodified Public links will render in your browser by default rather than open in a preview window on the Dropbox website. If you would rather force the Public link to directly download rather than render in the browser, add ?dl=1 to the end of the URL, as described above.



Dropbox使用帮助 >> 强制一个Dropbox文件通过web网页下载