Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Links to locally hosted files

Quote Reply
Links to locally hosted files
I tried to insert a link to a locally hosted file on a network drive (common to all our departmental workstations). The link was:
file://o:\public\myfile.doc , which works OK as a browser address. However, Links2 rejects it as "Unable to add link - problems with URL(Invalid format).
Before I start mangling the supplied Perl code I'd be grateful to know if anyone has got round this (or knows how to!)


------------------
Robert
Quote Reply
Re: Links to locally hosted files In reply to
You need to change the regular expression attribute for the URL field by adding file.

So, it should look like the following:

Code:
URL => [2, 'alpha', 40, 150, 1, 'http://', '^http|news|mailto|gopher|ftp|file'],

Hope this helps.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------