[pmwiki-users] Adding Upload Filetype

Neil Herber nospam at eton.ca
Mon Jun 6 11:14:08 CDT 2005


At 2005-06-06  10:58 AM -0500, Monte Padget is rumored to have said:
>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 100KAdded 
>the following line to local/config.php
>
>include_once("scripts/custom.php");I've tried it with both single quotes 
>and double quotes.
>

Monte

You do not need to create a custom script. The Uploads info should go into 
your config.php file:

$UploadsExt['rar'] = 'application/rar';

$UploadExtSize['rar'] = 100000;  #limit size of .rar files to 100K

Look for the existing Uploads info already in config.php by default.

That should do it!


Neil

Neil Herber
Corporate info at http://www.eton.ca/
Eton Systems, 15 Pinepoint Drive, Nepean, ON, Canada K2H 6B1
Tel: (613) 829-4668 




More information about the pmwiki-users mailing list