[Pmwiki-users] Re: Attach (was Re: spaces in uploaded files)
Sun May 9 00:40:22 CDT 2004
I've always felt that Attach: should be a directive, as in, [[Attach:]]
It doesn't feel right to include it as plain text along with the other
WikiText. If it's special, and it's doing something (internally), it
should be apparent from it's syntax. I vote to have this syntax put in
[[Square Brackets]]. Same with Attachlist .. should be [[attachlist:]].
I prefer all lower case to be consistent with other directives.
----- Original Message -----
From: "Wayne Lee" <wl.pmwiki at quetico.net>
To: "Christian Ridderstr?m" <chr at home.se>
Cc: <pmwiki-users at pmichaud.com>
Sent: Saturday, May 08, 2004 6:51 PM
Subject: Re: [Pmwiki-users] Re: Re: spaces in uploaded files
I'm just getting back to this...
On Apr 12, 2004, at 4:55 AM, Christian Ridderstr?m wrote:
> But as I think about it again, it seems that the solution
> isn't very good. How should this markup be interpreted:
> Attach:A file with spaces.txt does it end now?
> Does that refer to a file called 'A file with spaces.txt' or
> to a file called 'A file with spaces.txt does it end now'...
Yup, definitely a problem.
> One possible solution could be to augment the syntax as follows:
> Attach:"A file with spaces.txt"
>> at what point is the file name being converted with the spaces
>> with +'s?
> I have no idea... if you point me to an example I could have a closer
> at the problem.
urlencode() turns spaces into pluses. rawurlencode() does not.
I just posted modification instructions to support spaces in filenames
%20 must be used to represent a space. Or optionally, the Attach
markup can be changed to support spaces:
[[Attach:my file.txt] link to file]
As a result, this will no longer work:
[[Attach:file.txt link to file]]
Pmwiki-users mailing list
Pmwiki-users at pmichaud.com
More information about the pmwiki-users