[pmwiki-users] Attachment size

Patrick R. Michaud pmichaud at pobox.com
Thu Aug 3 11:16:21 CDT 2006


On Thu, Aug 03, 2006 at 12:05:21PM -0400, Neil Herber wrote:
> At 2006-08-03  10:55 AM -0500, Patrick R. Michaud is rumored to have said:
> >Oh!  Here's a thought -- what if we overload the "alt-text" field
> >of links to allow the specification?  So:
> >
> >    Attach:file.txt               -- normal
> >    Attach:file.txt"size"         -- display with file size
> >    Attach:file.txt"date"         -- display with last updated date
> >    Attach:file.txt"type"         -- display with type
> >
> >Currently the "..." is used to provide alt-text for images, but
> >isn't really used for attachments, so it might make sense to re-use it
> >for that here.
> 
> Would work for me! But I hope it will let me do something like:
> 
>         Attach:file.txt"size, date"
> 
> or have additional options like:
> 
>         Attach:file.txt"sizeanddate"
> 
> Just size alone would be great. I have one wiki with a 17 meg file 
> lurking amongst a bunch of 1 meggers and it takes people by surprize.

Yes, I'm also thinking of something along the lines of %-escapes, thus:

    Attach:file.txt"%size, %date"

I'm not entirely comfortable with this syntax, but I haven't been able
to come up with anything better.

Pm




More information about the pmwiki-users mailing list