在Confluence中将链接添加到本地文件 [英] Adding link to local file in Confluence

查看:535
本文介绍了在Confluence中将链接添加到本地文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在 confluence 中添加到本地文件的链接。显然,仅当文件位于用户计算机本地时,此链接才有效。我理解这一点。

I would like to add a link to a local file in confluence. Obviously this link would only work if the file is locally on the users computer. I understand that.

如果我添加这样的地址:

If I add the address like this :


文件:/// D:/dev/ngs-frontend/src/pages/myPage.html

file:///D:/dev/ngs-frontend/src/pages/myPage.html

浏览器将我发送至:


about:空白

about:blank

如果我尝试加上这样的报价:

If I try to add it with quotes like so :


file:/// D:/ dev / ngs-frontend / src / pages / myPage .html

"file:///D:/dev/ngs-frontend/src/pages/myPage.html"

.. confluence崩溃!

..confluence crashes!

怎么可能

推荐答案

如您在Confluence中添加Web链接时所提到的,使用 file 指定文件>协议(file:///),您可能会遇到无法使用的问题。

As you mentioned when adding the web link in Confluence specifying the file using the file protocol (file:///) you might face the issue that it doesn't work.


显然,此链接仅在文件位于本地时才有效在用户计算机上。

Obviously this link would only work if the file is locally on the users computer.

这并不完全正确。如果您打开开发人员工具,很可能会收到错误 不允许加载本地资源

This is not entirely true. If you open the developer tools you most likely will be getting the error "Not allowed to load local resource"

作为安全性的衡量指标,浏览器不会•允许您从其他来源访问文件,尤其是从用户计算机访问文件(这将带来严重的安全风险)。仅想象一下,如果您可以从浏览器访问Windows目录中的文件,就可以立即拆分操作系统(或窃取用户数据)。

As measure of security the browser won't let you access files from a different origin, specially from the users computer (this would be a serious security risk). Only imagine if you could access the files in the Windows directory from the browser, you could break apart the operating system in no time (or steal user data).

这在此处

如果将文件放入同一台服务器Confluence正在运行,则应该可以正常工作。不过,我相信您可以节省时间,只需将页面添加为附件并加载即可(Confluence在版本控制(如果要修改html文件)。

If you put the file in the same server Confluence is running, then this should work just fine. However I believe you can save time just adding the page as an attachment and loading it (Confluence is pretty decent at version controlling in case you want to modify the html file).

希望这会有所帮助!

这篇关于在Confluence中将链接添加到本地文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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