[pmwiki-users] how does one encode "file:" link in a wiki page?

Neil Herber nospam at mail.eton.ca
Mon Jan 24 17:10:32 CST 2005


At 2005-01-24  05:36 PM -0500, Gautam H. Thaker is rumored to have said:
>I hope this makes sense. I think mozilla ignores it prob. due to 
>restrictions placed on it by apache to ignore files outside of root may be 
>(/var/www/html, for example.) So i think that can be overcome with config 
>files for apache.

It does make sense, but I am sure the problem is not Apache - it is the 
browser itself. I am using Apache and I can open files with this kind of 
construct using IE 6, but Firefox just sits there and does nothing. Firefox 
has everything under the sun (not Sun TM!) configurable and one of those 8 
million flags might control access to local file systems.

If I drag and drop a folder onto Firefox, an FTP-like window opens up with 
all of the files and folders.

If I type the file:///<path> into the "destination" (what is that field 
called?) it works too.

If I put the  file:///<path> on a wiki page and try to use the link, it 
does not work.

Strangely enough, when the first two versions display a directory listing, 
it has links which Firefox honors! I examoined the source of a page from 
PmWiki with a link and the "self-generated" links in the directory listing 
and the only differences I could see were:

1) A "class" statement in the PmWiki version
2) PmWiki uses single quotes to enclose the URL while the self-generated 
listing used double quotes.

I also noted that an HTML page I created in a text editor with a link to a 
file:/// spec using double quotes on the link *did not work* - so Firefox 
(and I suspect, Mozilla) is preventing the display. IE 6 worked with the 
hand-built file.


Neil

Neil Herber
Corporate info at http://www.eton.ca/
Eton Systems, 15 Pinepoint Drive, Nepean, ON, Canada K2H 6B1
Tel: (613) 829-4668 




More information about the pmwiki-users mailing list