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