Kwiki::Attachments(3)
π Kwiki::Attachments π
okay bestie, so this is Kwiki::Attachments(3) β part of the User Contributed Perl Documentation collection, and it's literally the glow-up your wiki page was waiting for π«Ά
β¨ NAME β¨
Kwiki::Attachments β the Kwiki Page Attachments Plugin. that's it, that's the whole name, she's iconic and she knows it π
π SYNOPSIS π
okay so here's the whole vibe check, two steps, no notes:
1. Install Kwiki::Attachments
2. Run 'kwiki -add Kwiki::Attachments'
that's it. that's the ritual. periodt πΈ
π¦ DESCRIPTION π¦
π General
Kwiki::Attachments hands your Kwiki wiki the ability to upload, store and manage file attachments on any page. any page!! the whole place. main character energy fr fr π
so by default β and this is the part that's giving magic β¨ β if you have an image creation module installed like Imager or Image::Magick, then a thumbnail gets created for every supported image file type you upload. every single one. no cap.
those thumbnails show up on the attachments page, and they can also pop off on wiki pages via the wafl directives we're about to spill in the next paragraph, iykyk.
okay now listen closely because this is important π: the thumbnail files have thumb_ prepended to the original filename, and they are not displayed separately in the attachment page or widget. and for this reason, you cannot upload files beginning with thumb_. that's just the rules, bestie, it's the law of the land π
π« WAFL
This module provides 3 wafl tags which can be used to link to or display attachments in a Kwiki page. three!! a little trio π
{file:[page/]filename}β creates a link to attachment filename π{img:[page/]filename}β displays attachment filename πΌοΈ{thumb:[page/]filename}β displays the thumbnail for attachment filename πΈ
β Configuration Options β
your config file lives right here, mwah:
[kwiki_base_dir]/config/attachments.yaml
and inside she's got three settings, let's get into it:
attachments_skip: [regular_expression]β Kwiki::Attachments may be configured to reject the upload of files with names matched by the given regular expression. by default, it's set to reject files beginning withthumb_or.and those ending with~or.bak. so like, the gremlins get filtered out πmake_thumbnails: [on|off]β this flag controls whether thumbnails are created from uploaded image files. it is set to'on'by default. slay πim_override: [on|off]β okay so ifImager.pmandImage::Magick.pmare both available, Kwiki::Attachments uses Imager, unlessim_overrideis set to'on'. this parameter has no effect if only one of the two image manipulation modules is installed. it is set to'off'by default. lowkey the most dramatic option in the whole file tbh π
π AUTHOR π
Sue Spence <sue_cpan@pennine.com>
This module is based almost entirely on work by Eric Lowry <eric@clubyo.com> and Brian Ingerson <INGY@cpan.org> β shoutout to the OGs, we love a collaborative origin story π«Άβ¨
π COPYRIGHT π
Copyright (c) 2005. Sue Spence. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html
legal text but make it cute, we love to see it π
π POD ERRORS π
Hey! The above document had some coding errors, which are explained below:
Around line 355:
You forgot a '=back' before '=head1'
not me exposing the author's pod crimes π it's fine, it's fine, we still stan. the vibe was immaculate even if the =back ghosted us π
okay that's the whole page bestie!! this was rendered from the perl v5.42.0 manual set, dated 2025-07-25, filed under Kwiki::Attachments(3) β go forth and attach ur little files, you absolute legend ππβ¨
π¦ where this page comes from
- fedora 43: perl-Kwiki-Attachments 0.21-44.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms