Click here to get back home

Correct form for file:// URLs (or why don't they work in Firefox?)

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Correct form for file:// URLs (or why don't they work in Firefox?) Philip Herlihy 01-13-2005
Get Chitika Premium
Posted by Philip Herlihy on January 13, 2005, 9:37 pm
Please log in for more thread options
I'm using a number of hyperlinks on an Intranet I'm developing which refer
to documents on a network server. The URLs I'm using have the form:
file://<server>/<path>/<file>.pdf

<server> is an UNC path, like: hostname

They work perfectly in IE, but not in Opera or Firefox. I can't see any
reason why not - is the form correct? Any other ideas?

--
####################
## PH, London
####################
(crossposted: follow-up to: uk.net.web.authoring)




Posted by Jukka K. Korpela on January 13, 2005, 10:10 pm
Please log in for more thread options

> I'm using a number of hyperlinks on an Intranet I'm developing which
> refer to documents on a network server. The URLs I'm using have the
> form:
> file://<server>/<path>/<file>.pdf
>
> <server> is an UNC path, like: hostname
>
> They work perfectly in IE, but not in Opera or Firefox. I can't see
> any reason why not - is the form correct? Any other ideas?

There is no specification of how file: URLs _should_ work, except for their
overall syntax and the statement that they refer to files in a system-
dependent manner. For a treatise on file: URLs, see
http://www.cs.tut.fi/~jkorpela/fileurl.html

With the given information, it is hardly possible to say what causes the
_browser_ differences. It might be the reverse solidus (backslash)
characters, which violate URL syntax.

Followup-To overridden - I can't see much point in asking in a random set
of newsgroups, three international and one national, and setting followups
to the _national_ group. Of course _none_ of the groups was really the
right one - as so often in crossposting. Hence followups now set to poster.
This means you should think what your problem really is, and start over
after selecting the right group.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html



Posted by Philip Herlihy on January 19, 2005, 8:05 pm
Please log in for more thread options
> There is no specification of how file: URLs _should_ work, except for
> their
> overall syntax and the statement that they refer to files in a system-
> dependent manner. For a treatise on file: URLs, see
> http://www.cs.tut.fi/~jkorpela/fileurl.html
>
> With the given information, it is hardly possible to say what causes the
> _browser_ differences. It might be the reverse solidus (backslash)
> characters, which violate URL syntax.
>
> Followup-To overridden - I can't see much point in asking in a random set
> of newsgroups, three international and one national, and setting followups
> to the _national_ group. Of course _none_ of the groups was really the
> right one - as so often in crossposting. Hence followups now set to
> poster.
> This means you should think what your problem really is, and start over
> after selecting the right group.
>
> --
> Yucca, http://www.cs.tut.fi/~jkorpela/
> Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html
>

Thanks - that's a very useful account. In my case, the browsers appear to
be refusing to follow file:// links from a page fetched using http://,
except for IE, which is happy to oblige. The files are PDFs on a private
network/intranet. Nevertheless, it probably makes sense to serve them from
the webserver in future.

I note your comment on crossposting. One difficulty is framing a sensible
question and another is knowing where to ask - hence the temptation to
crosspost. I was once severely scolded for not putting a "Followup" group
(and yes, that one was chosen at random). Which would you say would have
been the correct single group?

--
####################
## PH, London
####################




Posted by Gervase Markham on January 20, 2005, 10:52 am
Please log in for more thread options
Philip Herlihy wrote:
> Thanks - that's a very useful account. In my case, the browsers appear to
> be refusing to follow file:// links from a page fetched using http://,

This is security behaviour, working as designed.

If you really want to turn it off, set the "security.checkloaduri" pref
to false.

Gerv


Similar ThreadsPosted
Firefox/IE7 DIV positioning - can you correct this CSS disaster? September 30, 2007, 2:29 pm
Default dir for file urls. February 27, 2007, 8:24 pm
in Firefox March 19, 2008, 9:57 pm
Why does FireFox not work with this site? October 28, 2004, 4:10 pm
HTML doesn't work for FIREFOX January 6, 2007, 9:15 am
Anyone else know why my lovely new webpage doesn't work in anything but firefox? October 23, 2006, 9:48 am
Trying to get the submit form to work - confused, please help! March 17, 2008, 3:12 pm
C:\temp does not work in IE anymore ! November 22, 2004, 5:51 am
Form field entry directs to diff URLs based on entry? April 29, 2006, 2:27 pm
what is the mechanism of "IE" and "Firefox 1.0" to parse HTML file January 31, 2005, 2:58 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap