[pmwiki-users] Attachment handling enhancement request

Dominique Faure dominique.faure at gmail.com
Tue Mar 27 15:04:21 CDT 2007


On 3/27/07, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> On Tue, Mar 27, 2007 at 07:52:12AM +0200, pmwikidev at sigproc.de wrote:
> > > Couldn't we have $UploadPrefixFmt customization be improved to
> > > something similar to that is available via $PagePathFmt? I'm
> >
> > Yet the basic concerns are still valid:
> >
> > * Can I address any attachment from anywhere in the wiki, no matter
> > whether I choose per group or per page storing?
>
> Yes.  Simply add the name of a page associated with the attachment
> as part of the Attach: link.  A link like Attach:Group.OtherPage/file.txt
> will always return the "file.txt" attachment associated with
> Group.OtherPage.
>
> > * Are the permissions to access the file properly checked, and is this
> > actually possible? (For example, for accessing files in '/$Group' it is
> > not clear which page parameter should be used in a $AuthFunction call,
> > since we access a group not a page. (*))
>
> Attachments in PmWiki are _always_ accessed through individual pages, even
> if the the uploads directory happens to be organized on a per-group or
> sitewide basis.  For per-group or sitewide organizations, it's simply the
> case that the attachments appear to be available to multiple pages.
>
> So, assuming that $EnableDirectDownload is turned off, it is the read
> authorizations on a page that determines the accessibility of any
> attachments associated with that page (or group or site).
>
> I'll be glad to illustrate with examples, if needed.
>
> > * When changing the addressing scheme, all recipes including/manipulating
> > files from the upload dir should be considered being updated as well (at
> > least in long run) to have unity addressing throughout the wiki.
>
> I don't understand quite what is meant by "changing the addressing scheme"
> here.
>

Could it mean having side-by-side groups having each different values
for the $UploadPrefixFmt parameter?

Dom



More information about the pmwiki-users mailing list