PITS /
00267: upload.php should check status of file_upload and report if disabled
Summary: upload.php should check status of file_upload and report if disabled
Created: 2005-01-05 08:13
Status: Suspended
Category: Feature
From: Pm
Assigned:
Priority: 44
Version: 2.0.beta14
OS:
Description: Some PHP installations have file_upload disabled; it would be nice if PmWiki could let the admin know about this so they don't spend hours trying to troubleshoot it.
The parameter is file_uploads with an "s". Here's a way to test if it's enabled or not:
<?php if (ini_get('file_uploads')) { echo 'Uploads are enabled.'; } else { echo 'Uploads are disabled.'; } ?>