
brion at pobox
Nov 6, 2009, 2:44 AM
Post #2 of 2
(90 views)
Permalink
|
|
Re: Files and Folder names with spaces - linking issues
[In reply to]
|
|
On 10/27/09 12:14 AM, Kushal Koolwal wrote: > > I am running mediawiki on Linux a box. > > Here is what I have noticed: > > [file://G:\TEMP\linktest\test.pdf] > works fine > > But when there are spaces in the folder/file name (for example:G:\TEMP\link test\test.pdf): > [file://G:\TEMP\link%20test\test.pdf] > does not work > > However if you add an extra "/" in the file:// keyword like this: > [file:///G:\TEMP\link%20test\test.pdf] > works fine. > > Is this something normal? Looks normal. After the double-slash the next element is a hostname -- when accessing local paths (such as drive letters on Windows) you need another slash to imply localhost. Keep in mind that file: URLs are wildly inconsistent across browsers and operating systems, so their behavior may not be very consistent for edge cases where you're not technically doing it right. -- brion _______________________________________________ MediaWiki-l mailing list MediaWiki-l[at]lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
|