2008-08-26 01:52:34 +02:00
|
|
|
[[!template id=plugin name=filecheck core=0 author="[[Joey]]"]]
|
2010-02-12 09:38:00 +01:00
|
|
|
[[!tag type/special-purpose]]
|
2008-08-26 01:52:34 +02:00
|
|
|
|
|
|
|
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
|
2010-08-09 19:18:59 +02:00
|
|
|
available, for mimetype checking. It falls back to using the `file` command
|
|
|
|
if necessary for hard to detect files.
|
2008-08-26 01:52:34 +02:00
|
|
|
|
|
|
|
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 -".
|