How to link local folder


I'm using Jira and try to add a link to a local folder in a text-/commentbox like this:

<a href="file://LocalDisk:\Folder\Folder\Folder\">DisplayName</a>

It did not work. Either IE9 or FF18 open an explorer.

However when I copy the link and insert it to a new Tab -> IE9 opens an new Explorer Window and FF18 shows the folder content in the Tab.

Is there an other option to open a local folder or what is my mistake.


5 answers

1 accepted

Due to security concerns, all Browsers disallow linking from (remote) website to local content. Thats the reason why they show the content only if you manually enter the path. However you can override this behaviour for most browsers (but i would not recommend it).

You could instead just use the Attachment function or make the files available via another webserver ( )

also take a look at this Knowledgebase Article:'t+Link+to+Local+Files+from+within+JIRA

It is not possible to show the content of a directory using an internet browser. They don't know what to do with this information. If you want to open a file explorer you have to use vbscript in your html code.

do you have a smal example, how to do this

This is not true as you can see below ... using "file:///G:/BU%20HP%20SALESINFO/" in browser path gives this:

image2016-7-25 16:31:10.png

0 vote

I'm not sure we can help until we understand what you mean by "local folder"?

The url you have given, with file:// will cause a browser to open the file system on the machine it is running on. You have configured IE9 and FF18 to try to open files with Explorer rather than internally.

I suspect what you actually mean is not "local folder", but "folder on a web server" (One reason I assume that is that you simply cannot assume that your "local folder" will exist on a client machine). If that is what you mean to do, then you need to be running something that will expose that server directory.

I'm trying to link a folder on my local hard disk, everybody else of my team should have this folder too. So the link should open the folder on the computer of everybody else

That sounds a little contradictory to me - "on my local hard disk" and "folder on computer of everybody else".

To clarify the requirements, I'm afraid I need to ask more questions:

1. Which one is it? Do you need to open the directory on your hard disk, and everyone opens it on your machine? Or do you mean everyone tries to open the same local path, irrespective of whether it's there, or it's contents?

2. When you say "open", what do you need to open the directory with?

You gotta be using relative paths, e.g. <a href="/folder/folder/">

I'm not sure if you could access entire folders like this in your webserver, but you could probably create a link that links back to jira homepage via <a href="/../../jira">

Suggest an answer

Log in or Join to answer
Community showcase
Alexey Matveev
Published Mar 17, 2018 in Jira

How to run Jira in a docker container

Everything below is tested on Ubuntu 17.10. I prefer to use Jira in a docker container because: 1. I can install Jira with a couple of commands. 2. I can start and stop Jira just by starting and s...

626 views 6 10
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot