[pmwiki-users] Attachment handling enhancement request

Patrick R. Michaud pmichaud at pobox.com
Wed Mar 28 12:32:05 CDT 2007


On Wed, Mar 28, 2007 at 07:11:57PM +0200, ThomasP wrote:
> If I understand you right then "attached to" reads
> like "associated with", and files that happen to be stored on let's say
> per-group basis are associated with every page of that group [1]. (Ergo
> the file can be downloaded via any of these pages, ergo read access to at
> least one of the pages in the group is enough to download the files.)

This is correct.

> The "Nowadays" paragraph is quite, say, "interesting" ;-)
> This little fact must have slipped through my daily "Pmwiki reading list".

I think the documentation is out of date on this point.

> Thus, half joke, half serious: if anyone is ever interested I propose a
> markup "File:..." which is targetting files exactly as stated in the
> markup, e.g. an absolute "File:/MyGroup/MyPage/blah.txt", or a relative
> "File:blah.txt" targetting file blah.txt in the page (or group (*)) dir
> corresponding to where the markup is placed.

I would stay away from "File:", as it's too easily confused with
the existing url "file:" prefix.

One can already use a Site.InterMap link to establish some "direct
references", with

    Uploads:    $UploadUrlFmt

Then an author can write

    Uploads:/Main/file.txt 

in order to get "file.txt" from Main's group directory.  Of course, this
means that all such references have to include the group name, and
it uses direct access to the uploads/ directory, so there's no checking
of page permissions.  So, it's still likely that one would like a special
markup prefix ("Uploads:" would work) to be able to do some sort of smart
path resolution and still channel things to the appropriate ?action=download
for permissions handling.

Thanks for the excellent comments and suggestions!

Pm




More information about the pmwiki-users mailing list