[pmwiki-users] $UploadPrefixFmt and Attach files

Mike Bishop mbishop at mtaonline.net
Fri Apr 4 13:38:21 CDT 2008


On Fri, Apr 04, 2008 at 07:28:02AM -0500, Patrick R. Michaud wrote:

<snip>

> 
> One approach we (I?) could take in this situation would be to generalize
> $UploadPrefixFmt to be an array instead of a single value.  For example,
> we could have:
> 
>     $UploadPrefixFmt = array('/$Group/$Name', '/$Group');
> 
> which says to look in a per-page upload store first, and then
> look in the per-group directory.  Of course, we also need a way
> for ?action=upload to know where to store an attachment (since it
> may be different from one group to the next), but that could be 
> handled by introducing a new configuration variable that is set as a 
> per-group or per-page customizations.
> 

+1

This could also permit "draft" pages to display correctly when the
upload format includes $Name ...

Rgds,
--
Mike Bishop 
Willow, Alaska



More information about the pmwiki-users mailing list