链接到其他服务器上的文件 [英] Link to file on different server

查看:142
本文介绍了链接到其他服务器上的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用公司内部网处理发票报告.我希望能够将发票号链接到实际发票.我的问题是文件驻留在其他服务器上,而不是Web服务器上.

I am working on a invoice report with my companies intranet. I would like to be able to link the invoice number to the actual invoice. My problem is that the file resides on a different server and not the web server.

当我在计算机上时,必须使用远程桌面连接来访问服务器以获取文件.

When I'm on the computer I have to use the remote desktop connection to access the server to get to the files.

我尝试了\ SERVER \ file_path.pdf和file:\\ SERVER \ file_path.pdf,但都无法使用.

I've tried \SERVER\file_path.pdf and file:\\SERVER\file_path.pdf and neither works.

推荐答案

您正在做的事情被设计禁用.只要还从本地文件(即file:///pageContainingLink)中调用HTML,到本地文件的这种链接就可以在某些浏览器中使用.如果没有,那就是一个安全漏洞.在基于Webkit的浏览器中根本无法使用.

What you are doing is disabled by design. This sort of link to a local file will work in some browsers as long as the HTML is also called from a local file (ie file:///pageContainingLink). If not, it's a security vulnerability. It won't work at all in webkit based browsers.

请参见<锚链接到本地​​文件? (< a href ='file:///{path}'> DEAD LINK</a>不适用于FireFox,但适用于IE)

跨浏览器链接到本地​​系统上的文件

如果要使其正常工作,则也需要将另一台服务器也用作网络服务器,以便可以链接到

If you want to get this to work, you'll need the other server to be a web-server too so that you can link to http://intranet2/fileYouWant.pdf

这篇关于链接到其他服务器上的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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