Thread:Project:Support desk/Problem with Uploading 2G File

I am running Mediawiki 1.16.5 on Solaris 10/SPARC with Apache 2.2.18 and MySQL 5.5.13

I am trying to configure MediaWiki to accept uploads of files that are 2 gigabytes or larger.

When I try to upload a file of this size using the Special:Upload page and choosing the "Browse" button to pull the file from my PC hard drive, I receive the following error in the Apache log:

Wed May 25 15:19:16 2011] [error] [client 10.10.20.227] Invalid Content-Length, referer: https://cfgmgtwiki.tanagerinc.com/index.php/Special:Upload

When I try to upload via an http URL, I receive a PHP error, which I've reported through Bugzilla.

Smaller file uploads using either method work just fine. Even files of 500 meg in size upload either way with no issues.

I have done the following:

In php.ini I have set the following: max_input_time = 7200 memory_limit = 3G max_execution_time = 7200 file_uploads = on upload_tmp_dir = /tmp upload_max_filesize = 4294967296 post_max_size = 5368709120

In Apache I have the request buffer and request header sizes set to unlimited

In LocalSettings.php I have:

$wgEnableUploads      = true; $wgStrictFileExtensions = false; $wgCheckFileExtensions = false; $wgVerifyMimeType = false; $wgFileExtensions[] = array_merge($wgFileExtensions, array('pdf', 'iso', 'zip', 'gz', 'Z', 'flar' )); $wgAllowCopyUploads = true; $wgMaxUploadSize = 4294967296;

I don't know what else to do to get a 2G file uploaded. Can anyone help?

Thanks,

Chris