[pmwiki-users] Upload Extension

Patrick R. Michaud pmichaud at pobox.com
Fri Mar 31 08:56:24 CST 2006


On Fri, Mar 31, 2006 at 08:49:40AM -0600, Jonathan Scott Duff wrote:
> On Thu, Mar 30, 2006 at 11:48:06PM -0800, Gary Spivey wrote:
> > Is there a simple way to turn off the extension checking in the upload
> > module? I am tired of having to continually add new extensions and
> > simply want it to allow uploads of anything.
> 
> I *think* you can override the function that does the checking to have
> it always return success.  
> [...]
> And the function UploadVerifyBasic seems to return the empty string on
> success, so perhaps you just need to add this to your local/config.php
> 
> function UploadVerifyGary($page,$file,$path) {
>    return '';
> }
> 
> $UploadVerifyFunction = 'UploadVerifyGary';
> 
> and it should let you upload anything. 

Yes, this will work also -- but it really does allow anything
to be uploaded, regardless of file size, quotas, extensions, etc.

Pm





More information about the pmwiki-users mailing list