[Pmwiki-users] can't get uploads working

Patrick R. Michaud pmichaud
Sun Dec 19 10:54:56 CST 2004

On Sun, Dec 19, 2004 at 01:07:29AM -0500, Tom Holroyd wrote:
> I've been trying to get uploads to work.  I've got $UploadDir
> etc., set, the dir is writeable, etc...
> I'm not getting any messages, just a record of the POST in the 
> log file.  Where should I look to see what's happening, and where 
> it might be going wrong?
> Does it give diagnostics when the file limit is exceeded?

Normally PmWiki gives diagnostics, but sometimes PmWiki itself isn't
informed that anything went wrong.

If you aren't getting any messages -- i.e., if uploading a file
returns you immediately to the page's browse view but with no uploaded
file, then check the value of PHP's post_max_size setting.  (You can
do this by setting $EnableDiag = 1; in config.php and running pmwiki
with ?action=phpinfo.)  If the file you're uploading is larger than the
value of post_max_size, it'll be silently stripped by PHP and you won't
see any sort of error.

If that's not it, check upload_max_size in the PHP settings (although
you should've seen "no file upload" or "file is larger than..." messages
in this case).  You might also check LimitRequestBody in Apache's 


More information about the pmwiki-users mailing list