I would like to be abble to attach or link files hosted on my server, like ISO's, softwares, other

Nys Xavier
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 1, 2019

Hello, I'm using confluence self hosted server, and I would like to be able to link UNC path to files hosted on my servers.

I didn't find any solution online for my current version, witch is 6.8.2.

 

Thank you very much

1 answer

0 votes
Diego
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 3, 2019

Hello there!

You should be able to attach files to instance normally, no matter their type:

Upload Files

However, linking a UNC file path does not work in most current browsers. For example:

UNC Paths in Google Chrome

Security in Depth: Local Web Pages

A few years back, there have been other questions about this here:

Linking to Windows file server share UNC path not working

Create "clickable" link for UNC path

What happens is that the browser automatically blocks the usage of those. For instance, Firefox will "do nothing" when you click it. Chrome will just try to load a page where the link is this:

about:blank#blocked

So, let us know your thoughts on this. Looking forward to your reply!

Jochen Betz
Contributor
June 11, 2024

While it is true that Firefox can prevent it, it does not explain the behavior of Jira.
If creating a simple html page without any javascript but only a simple link alike

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Local File Link</title>
</head>
<body>
<h1>Local File Link</h1>
<p>This is a link to a local file:</p>
<a href="file:///D:/Pictures/Screenshots/2024-06-11_13-36-07.png">Link to local file</a>
</body>
</html>

 

I can convince Firefox to open the link.

 

If you look at the code of Jira it looks different:


<a data-testid="link-with-safety" href="file:///D:\Pictures\Screenshots\2024-06-11_13-36-07.png" title="file:///D:\Pictures\Screenshots\2024-06-11_13-36-07.png" data-renderer-mark="true" class="css-tgpl01">A screenshot</a>

In addition there is a event linked to "click"
2024-06-11_16-33-25.png

 

So it is ACTIVE coding from Atlassian side which eventually prevents us from putting links to local files opening on click.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events