[pmwiki-users] need help making big uploads work

Patrick R. Michaud pmichaud at pobox.com
Wed Feb 23 16:04:25 CST 2005


On Wed, Feb 23, 2005 at 04:49:15PM -0500, Neil Herber wrote:
> It appears that PmWiki looks at the name the file is given rather than the 
> source name when deciding on the size limit. 

Yes, because the name the file is given is going to determine the
filetype on the server.  The name of the source file is irrelevant
to the server (and such a name can't be trusted anyway -- some
browsers don't even send it).

> Given that the extension is used to decide on the legality of the file type 
> and its size limit, should the upload processor not insist on a proper 
> extension before starting the upload?

It does, and by default PmWiki considers no extension to be a proper
extension (for text/plain files) with its own filesize limit.  
(Many files in Unix environments do not have an extension on them.)  

To disable uploading of files with no extension, simply set

    $UploadExtSize[''] = 0;

in config.php.

Pm



More information about the pmwiki-users mailing list