diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-08-25 19:52:34 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-08-25 19:52:34 -0400 |
commit | 78e34fbdc255fd3f71f5b43ce1acd1fa0678e1ce (patch) | |
tree | 0988142ac8168c6b317a7cdc8262c92467579cc0 /doc/plugins/filecheck.mdwn | |
parent | c013f0a8bc7f5969e21db06228d3618a9c7e4960 (diff) | |
download | ikiwiki-78e34fbdc255fd3f71f5b43ce1acd1fa0678e1ce.tar ikiwiki-78e34fbdc255fd3f71f5b43ce1acd1fa0678e1ce.tar.gz |
filecheck: New plugin factoring out the PageSpec additions that were originally part of the attachment plugin.
Diffstat (limited to 'doc/plugins/filecheck.mdwn')
-rw-r--r-- | doc/plugins/filecheck.mdwn | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/plugins/filecheck.mdwn b/doc/plugins/filecheck.mdwn new file mode 100644 index 000000000..f4563d58e --- /dev/null +++ b/doc/plugins/filecheck.mdwn @@ -0,0 +1,16 @@ +[[!template id=plugin name=filecheck core=0 author="[[Joey]]"]] +[[!tag type/useful]] + +This plugin enhances the regular [[ikiwiki/PageSpec]] syntax with +some additional tests, for things like file size, mime type, and virus +status. These tests are mostly useful for the [[attachment]] plugin, and +are documented [[here|ikiwiki/pagespec/attachment]]. + +This plugin will use the [[!cpan File::MimeInfo::Magic]] perl module, if +available, for mimetype checking. + +The `virusfree` [[PageSpec|ikiwiki/pagespec/attachment]] requires that +ikiwiki be configured with a virus scanner program via the `virus_checker` +option in the setup file. If using `clamav`, with `clamd`, set it to +"clamdscan -". Or to use clamav without the `clamd` daemon, you +could set it to "clamscan -". |