[pmwiki-users] Adding Upload Filetype
Patrick R. Michaud
pmichaud at pobox.com
Thu Jun 9 12:41:59 CDT 2005
On Mon, Jun 06, 2005 at 10:58:57AM -0500, Monte Padget wrote:
> I'm trying to allow uploading of .rar files.
> I've read the UploadsAdmin page and have tried the following:
>
> Created a file in the scripts/ directory custom.php.
>
> $UploadsExt['rar'] = 'application/rar';
>
> $UploadExtSize['rar'] = 100000; #limit size of .rar files to 100K
>
> Added the following line to local/config.php
>
> include_once("scripts/custom.php");
>
> I've tried it with both single quotes and double quotes.
>
> All I get in the wiki is a line at the top:
>
> $UploadExts['rar'] = 'application/rar'; $UploadExtSize['rar'] = 100000; # limit .rar files to 100K
>
> Am I missing something?
Looks as though you are missing the "<?php" that needs to be
at the beginning of the custom.php script.
Pm
More information about the pmwiki-users
mailing list