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? Is there any setting (in Mediawiki) by which adding the extra "/" can be taken care off. It is easy for technical users but non-technical users can get frustrated if they have to remember these details.
Kushal Koolwal
I do blog at http://9to5.koolwal.net/ _________________________________________________________________ Windows 7: It helps you do more. Explore Windows 7. http://www.microsoft.com/Windows/windows-7/default.aspx?ocid=PID24727::T:WLM...
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@lists.wikimedia.org