]> sipb.mit.edu Git - sipb-www.git/commitdiff
Allow attachments
authorQuentin Smith <quentin@mit.edu>
Sat, 13 Mar 2010 23:51:23 +0000 (18:51 -0500)
committerQuentin Smith <quentin@mit.edu>
Sat, 13 Mar 2010 23:51:23 +0000 (18:51 -0500)
ikiwiki.setup

index c3983d845fb360478e455d5f218040b64f56cd01..0dc4f8ac4fa358dddc5c851d9dca9966fd081933 100644 (file)
@@ -23,7 +23,7 @@ my %common_setup_args = (
        # IMPORTANT! If you add plugins that involve interface changes, you
        # will need to modify our templates to allow this, as our custom
        # template does not support them yet. See ~/src/ikiwiki/templates
        # IMPORTANT! If you add plugins that involve interface changes, you
        # will need to modify our templates to allow this, as our custom
        # template does not support them yet. See ~/src/ikiwiki/templates
-       add_plugins => [qw(goodstuff html httpauth rename remove 404)],
+       add_plugins => [qw(goodstuff html httpauth rename remove 404 attachment)],
        # plugins to disable
        # IMPORTANT! If you reenable passwordauth/openid, you need to
        # do some modifications described in TODO.SIPB in the source-tree
        # plugins to disable
        # IMPORTANT! If you reenable passwordauth/openid, you need to
        # do some modifications described in TODO.SIPB in the source-tree
@@ -83,9 +83,9 @@ my %common_setup_args = (
 
        # attachment plugin
        # enhanced PageSpec specifying what attachments are allowed
 
        # attachment plugin
        # enhanced PageSpec specifying what attachments are allowed
-       #allowed_attachments => 'virusfree() and mimetype(image/*) and maxsize(50kb)',
+       allowed_attachments => 'virusfree() and (mimetype(image/*) or mimetype(application/pdf)) and maxsize(10000kb)',
        # virus checker program (reads STDIN, returns nonzero if virus found)
        # virus checker program (reads STDIN, returns nonzero if virus found)
-       #virus_checker => 'clamdscan -',
+       virus_checker => 'clamscan -',
 
        # calendar plugin
        # base of the archives hierarchy
 
        # calendar plugin
        # base of the archives hierarchy