[Moin-user] URL Referencing with Spaces in File Strings

Brian Dorsey brian at dorseys.org
Thu Oct 24 16:50:02 EDT 2002

Here is what I ended up doing to link to files with spaces on remote NT

Build Functional Requirements]

This ends up turning into a nice link with a little floppy next to it.

Take care,

On Thu, Oct 24, 2002 at 12:51:03PM -0400, Yandle, Hans wrote:
> I have come to a bit of a problem. I am trying to setup a wiki page but have
> attachments stored on an external NT file server. NTFS supports long
> filenames and spaces with in them. So for instance, one might have the
> following:
> Server Name: abcserver
> Share Name: attachments
> UNC: \\abcserver\attachments
> Under the attachments root folder, one might have:
> /Company Logos
>   My Logo.png
>   Logo2.png
> Please note the space in the directory name ("Company Logos") and file name
> ("My Logo.png"). The following wiki statements work:
> *	Opens a new window, supports spaces in directories and filenames:
> [[NewWindow("file://abcserver/attachments/Company Logos/My Logo.png"[, "My
> Company Logo"])]]
> *	Here is the same image being displayed as an inline image. I
> converted the spaces to HTML encodings, i.e. <pre>asc(32)=html( ):
> file://abcserver/attachments/Company Logos/My Logo.png </pre>
> *	Here is a html reference for the logo using pure html code:
> <pre>[[HTML(<a href="file://abcserver/attachments/Company Logos/My
> Logo.png">My Company Logo</a>)]]</pre>
> I tried using the url[] command but every time it encounter a space the url
> command broke off the remainder/tail as its description. In other words this
> does not work:
> *	url["file://abcserver/attachments/Company Logos/My Logo.png" My
> Company Logo]
> It seems logical enough to me that if one encloses their file string within
> quotes that file string should be pass quoted and as is to the "a hrefs" or
> "image" tags.
> Can someone tell me how to workaround this issue or possible fix it. I
> understand the conversion of spaces to html encoding but my users will not.
> Regards,
> Hans
> -------------------------------------------------------
> This sf.net email is sponsored by: Influence the future 
> of Java(TM) technology. Join the Java Community 
> Process(SM) (JCP(SM)) program now. 
> http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en
> _______________________________________________
> Moin-user mailing list
> Moin-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/moin-user

More information about the Moin-user mailing list