I have MediaWiki installed on a synology server. I would like to create a link on the wiki that would allow opening of files on the same server.
Here are the steps I did to achieve this:
- Added
$wgUrlProtocols[] = "file://";
inLocalSettings.php
- A test file on the server:
file://myServerName/path/to/file/test.txt
. Putting this URL in my chrome browser directly opens the file. - Create a page in MediaWiki with a link to this file using
[[file://myServerName/path/to/file/test.txt]]
When I click on the generated wiki page, nothing happens. However when I hover on top of the link, it shows the correct URL.
Can someone please point out what additional steps I need to do to get this working?