使用Chrome打开本地文件(file://) [英] Open local files(file://) using Chrome

查看:2865
本文介绍了使用Chrome打开本地文件(file://)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个表单的页面。所有的链接在IE中工作正常。当超级链接被用户点击时,它们很好地打开在新标签中;然而,我意识到,当Chrome使用链接不会打开。我继续点击,但没有打开。打开文件的唯一方法就是复制超链接,在Chrome中打开一个新标签页,粘贴并继续。

 < a href =FILE:\\outsideserver\files\shared\form1.pdftarget =_ blank> Form1< / a> 

这是浏览器的功能吗?因为我用FireFox尝试过它,并且不起作用?
有没有办法呢?没有在浏览器中安装任何东西?因为我的用户喜欢Chrome。
谢谢您的回复。

解决方案

您无法访问服务器之外的文件或SandBox ,沙箱包括用户推送到浏览器或你的服务器的文件。



如果浏览器从网页访问pc文件是可能的,一个安全问题。

I have an page with some forms. All the links work fine in IE. They open in a new tab nicely when the hyperlink is click by the user; however, I realized that when Chrome is use the link doesn't open. I keep clicking but nothing opens. The only way of opening the file is copying the hyperlink, opening a new tab in Chrome, paste and go.

<a href="FILE:\\outsideserver\files\shared\form1.pdf" target="_blank">Form1</a>

Is this something that browser do? Because I tried it with FireFox and doesn't work either? It there a way of going around? without installing anything in the browser? Because my user loves Chrome. Thank you in advanced for the responses.

解决方案

You can't access to files outside your server or "SandBox", sandbox include the files that user push to the browser or to your server.

If the access from browser to a pc files from web pages was possible, it would be a security problem.

这篇关于使用Chrome打开本地文件(file://)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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