Is there any way to get a link to a networked file using this module?

I'm talking about the \\server\folder\file.txt type that you can open in a browser using file://

Thanks

Comments

jcfiala’s picture

I don't have a copy of the module open to test, but have you tried entering the path including the file:// header?

jfha73’s picture

Yes I have, but it still says is not a valid URL, I even checked the link.module file and it has this line:

$allowed_protocols = variable_get('filter_allowed_protocols', array('http', 'https', 'ftp', 'news', 'nntp', 'telnet', 'mailto', 'irc', 'ssh', 'sftp', 'webcal'));

I tried adding file to it, but still the same.

jfha73’s picture

The only thing with file is that for this particular type of path, the URL will look something like this:

file://///server/folder/file.txt

And I don't know if 5 '/' is too much for this module.

jcfiala’s picture

Issue summary: View changes
Status: Active » Closed (works as designed)

It's been four years since this bug, and no one's touched it. If you need to you can re-open this ticket, but I suspect you don't need this fixed anymore.

Also, to add the file protocol to the list of protocols, use $conf['filter_allowed_protocols'] to override the value of the filter_allowed_protocols variable.