[pmwiki-users] Weird one for those that use the attachtable cookbook
Petko Yotov
5ko at 5ko.fr
Thu Oct 15 02:32:18 PDT 2026
I can't reproduce this.
On a blank PmWiki 2.7.6, in config.php, I have enabled the latest
Attachtable, and have this for per-page uploads:
$UploadPrefixFmt = '/$Group/$Name'; # enable per-page uploads
Note the single quotes.
In Site/UploadQuickReference I added (:attachtable:).
When I attach a file to Main.HomePage?action=upload, it is listed there.
When I attach a file to Main.WikiSandbox?action=upload, it is listed
there. The file attached to HomePage is not listed.
Adding more files to either page does not make them appear in the other
page.
What happens if you revert to (:attachlist:) in UploadQuickReference?
If $UploadPrefixFmt is correctly set in config.php (not in
Group.Page.php), I suspect something else is interfering. See the first
entry on the page Troubleshooting on how to track it:
https://www.pmwiki.org/wiki/PmWiki/Troubleshooting
Petko
--
If you upgrade : https://www.pmwiki.org/Upgrades
On 14/10/2026 23:56, Christopher Cox wrote:
> So, I'm building my new pmwiki, all lastest, etc.
>
> I wanted to install attachtable, and it doesn't matter if I use latest,
> or the hacked up copy from my old pmwiki.
>
> I'm using per page uploads.
>
>
> What I'm seeing is that if enabled and updated in
> Site/UploadQuickReference to be used, all uploads from all pages of
> same group end up in the uploads area of the page I'm on when I view
> the attachments. Thus the attachtable markup seems to copy them all
> into the page uploads area from the entire group.
>
> I can't remember if that behavior was on the old pmwiki site or not,
> it's just weird. Anybody have any idea how to get it to behave and not
> copy all attachments from every Group/* into Group/Page attachments?
>
> That is, if I have
>
> uploads/Test/One/bigfile.txt
>
> and on Test/Two, there are no uploads. When I view attach for
> Test/Two, the following shows up:
>
> uploads/Test/Two/bigfile.txt
>
> (but of course worse in real life, as it's a copy of every attachment
> for all pages under Test/*)
>
> While I get that attachtable might be pure hackery. I like it's
> attachment and version handling.
More information about the pmwiki-users
mailing list