Ok two answers that sort of conflict...
Is it file:// or file:///
?
Mike Brierley
-----Original Message----- From: Brion Vibber [mailto:brion@pobox.com] Sent: Tuesday, September 07, 2004 3:25 PM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Handler for file:// type URLs?
Brierley, Mike wrote:
Would I use file:// for excel docs and word docs? And if so, could someone provide an example of how a link might look? (Code) I've tried this example and still do not get a working link.
You would use file: URLs to link to any file contained on a local filesystem or network drive. For instance if your office has Windows networking, and you want to reference the Excel file \bigserver\spreadsheets\stuff.xls you would link like this:
...see file://bigserver/spreadsheets/stuff.xls ... or ...see [file://bigserver/spreadsheets/stuff.xls the excel file]...
If the server is mapped to a drive letter (say S:) throughout your network you might do: ...see file://s|/spreadsheets/stuff.xls ... ...see [file://s|/spreadsheets/stuff.xls the excel file] ...
Note that some versions of Mozilla have disabled file: links in pages retrieved over HTTP for security. I don't know offhand what settings are
necessary to reenable it.
If you just want to link to a file you have uploaded to the wiki, use media links: [[Media:uploadedfile.xls]]
-- brion vibber (brion @ pobox.com)
Email Disclaimer: http://www.co.marin.ca.us/nav/misc/EmailDisclaimer.cfm
On Tue, 7 Sep 2004 15:30:25 -0700, Brierley, Mike mbrierley@co.marin.ca.us wrote:
Ok two answers that sort of conflict...
Is it file:// or file:///
?
I'm 90% sure it's file:/// - if I only type two /s into mozilla, it adds the third one for me. Never understood *why* it needs three, but that just seems to be the way of it.
Otherwise, Brion beats me hands down for clarity and lack of condescension. :-/
Rowan Collins wrote:
On Tue, 7 Sep 2004 15:30:25 -0700, Brierley, Mike mbrierley@co.marin.ca.us wrote:
Ok two answers that sort of conflict...
Is it file:// or file:///
?
I'm 90% sure it's file:/// - if I only type two /s into mozilla, it adds the third one for me. Never understood *why* it needs three, but that just seems to be the way of it.
It does seem to prefer three. However this is easy to verify experimentally: try them and see what works.
-- brion vibber (brion @ pobox.com)
Brion Vibber wrote:
Rowan Collins wrote:
On Tue, 7 Sep 2004 15:30:25 -0700, Brierley, Mike mbrierley@co.marin.ca.us wrote:
Ok two answers that sort of conflict...
Is it file:// or file:///
?
I'm 90% sure it's file:/// - if I only type two /s into mozilla, it adds the third one for me. Never understood *why* it needs three, but that just seems to be the way of it.
It does seem to prefer three. However this is easy to verify experimentally: try them and see what works.
-- brion vibber (brion @ pobox.com)
I always thought the base was two slashes (file://, like http://), the rest was the file path. If you have an absolute file path starting from the root it begins with /. So now you have 3 slashes in a row - nothing to do with mozilla, just part of the logic of it... No?
Graham
On Wed, 08 Sep 2004 18:34:03 +0100, graham graham@theseamans.net wrote:
Brion Vibber wrote:
Rowan Collins wrote:
On Tue, 7 Sep 2004 15:30:25 -0700, Brierley, Mike mbrierley@co.marin.ca.us wrote:
Ok two answers that sort of conflict...
Is it file:// or file:///
?
I'm 90% sure it's file:/// - if I only type two /s into mozilla, it adds the third one for me. Never understood *why* it needs three, but that just seems to be the way of it.
It does seem to prefer three. However this is easy to verify experimentally: try them and see what works.
-- brion vibber (brion @ pobox.com)
I always thought the base was two slashes (file://, like http://), the rest was the file path. If you have an absolute file path starting from the root it begins with /. So now you have 3 slashes in a row - nothing to do with mozilla, just part of the logic of it... No?
Graham
In Windows, it's written (for whatever reason) as file:///C:/foo/42/file. Though the Unix path name seems to make sense.
-- Jamie ------------------------------------------------------------------- http://endeavour.zapto.org/astro73/ Thank you to JosephM for inviting me to GMail!
mediawiki-l@lists.wikimedia.org