Chrome浏览器阻止了第二次下载 [英] Chrome blocks download at second attempt

查看:67
本文介绍了Chrome浏览器阻止了第二次下载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的页面上有一个锚,其中 href 设置为PDF文件URL,而 download 设置为字符串.第一次尝试可以正常下载文件,但是第二次并连续尝试则无法正常工作,并显示错误此站点试图自动下载多个文件".当我尝试使用firefox时,下载每次都会起作用.这是怎么回事?

I have an anchor on my page with href set to a PDF file URL and download set to a string. With first attempt the file is downloaded ok but second time and consecutive attempts it doesn't work with the error "This site attempted to download multiple files automatically". When I try with firefox the download works every single time. What's going on here?

推荐答案

设置->高级->设置内容->自动下载

Setting -> advanced -> setting content -> Automatic downloads

您有两个选择.使用不允许任何站点自动下载多个文件"旁边的滑块打开此限制.此设置会导致Chrome浏览器阻止您启动的第一个文件之后的所有自动后续文件下载.如果将滑块移到关闭位置,则当站点尝试在第一个文件之后自动下载文件(建议的设置)时,您会看到询问.每当网站尝试在第一个文件之后自动下载多个文件时,此选项都会提示您.

You have two options. Use the slider next to Do not allow any site to download multiple files automatically to turn on this restriction. This setting causes Chrome to block all automatic subsequent file downloads following the first one, which you initiate. If you move the slider to the off position, you see Ask when a site tries to download files automatically after the first file, which is the recommended setting. This option will prompt you each time a website attempts to download multiple files automatically following the first one.

这篇关于Chrome浏览器阻止了第二次下载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆