[pmwiki-users] upload type restrictions
Patrick R. Michaud
pmichaud at pobox.com
Mon Sep 11 10:13:33 CDT 2006
On Fri, Sep 08, 2006 at 04:18:44AM -0500, JB wrote:
> There is a way to disable uploading of a certain type of file.
>
> $UploadExtSize['zip'] = 0; # Disallow uploading .zip files.
>
> Is there a way to restrict uploads to just 2 file types like
> gif and jpg? Instead of telling which types to block, tell
> pmwiki which types to allow? Do I have to block all the types
> below, instead of specifying "allow jpg, gif"?
$UploadMaxSize = 0; # turns off all upload extensions
# re-enable uploads for jpg and gif
$UploadExtSize['jpg'] = 50000;
$UploadExtSize['gif'] = 50000;
Pm
More information about the pmwiki-users
mailing list