I'm setting up a new mediawiki install on RHEL3, and I'm encountering
problems uploading larger.zip files to the wiki. If I try to upload a
zip of 2.58 Mbytes (which is fine, well formed, opens in winzip
properly, no permissions issue, and certainly not empty) I get the
following mediawiki error:
"The file you uploaded seems to be empty. This might be due to a typo
in the file name. Please check whether you really want to upload this
file."
It's an internal wiki, so I don't need to impose any file-type or size
restrictions on uploads. Clearly I've neglected a setting or two -
what should I change?
Thanks,
Finlay McWalter
Notes:
1. Image uploading works fine.
2. I've added the following to LocalSettings.php
$wgCheckFileExtensions = false;
$wgUploadSizeWarning = 10000 * 1024;
3. I also added these, although I guess wgCheckFileExtensions=false
makes them redundant
$wgStrictFileExtensions = false;
$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'doc', 'zip',
'tar', 'gz', 'pdf' );
4. I'm running mediawiki-1.5.6, php-5.1.2, apache-2.2.0, mysql-4.1.18
on a 2.4.21 kernel