[pmwiki-users] Listing uploads and overwriting files when uploading
Patrick R. Michaud
pmichaud at pobox.com
Mon Jul 31 16:44:21 CDT 2006
On Mon, Jul 31, 2006 at 10:44:22PM +0300, Viktors Zilinskis wrote:
> Thank you for replies and hello again!
>
> This time I have two questions regarding uploads:
> 1. As I understand (:attachlist:) lists all the uploads in the current
> WikiGroup, not the current page. Is it possible to make PmWiki list
> files uploaded from the current page, not WikiGroup?
PmWiki's default is to organize attachments per-WikiGroup. But
this can be easily changed by setting
$UploadPrefixFmt = '/$FullName';
After this, PmWiki will associate each upload with individual pages
instead of full wiki groups.
> 2. I just checked that in case I add an upload with the same name as an
> existing one, PmWiki won't warn me about that and will overwrite
> existing upload silently. This might become confusing considering that
> most people will not check whether their upload name is different from
> those existing. Is there any way to prevent this happening?
Set $EnableUploadOverwrite = 0; (as described in the PmWiki.UploadsAdmin
page).
Pm
More information about the pmwiki-users
mailing list