Uploading a 2GB Zip file Timeouts

Fragment of a discussion from Project:Support desk
Jump to: navigation, search

You need to adjust at least upload_max_filesize, $wgMaxUploadSize and $wgUploadSizeWarning. Maybe more php settings like post_max_size.

Subfader21:07, 22 January 2012

I've done all that but it still doesn't work.

Holygamer15:48, 27 January 2012
Edited by author.
Last edit: 17:15, 28 January 2012

You may also need to change LimitRequestBody in your apache config (Separate config file from all your php configs). Other things to check - Make sure that where-ever php's temp directory is it has enough free space/no disk quota (Seems like a long shot given hard disks are much bigger than that these days, but you never know)

Ideally you'd want something that does chunked uploads when dealing with files of that size, but MediaWiki doesn't currently support that (There was some talk about it with the fireogg stuff, but i don't think it ever got merged in, as far as i remember.).


edited to fix fix my incomplete sentence

Bawolff21:11, 27 January 2012

You said "Make sure that where-ever php's temp directory is, that it doesn't". That it doesn't what?

Where do I go to edit LimitRequestBody? Does it have a default setting?

You mentioned I'd be better off with something that supports chunked uploads. Any suggestions? I don't care what it is as long as it works and allows people to upload 2GB files to my site.

For the record my host has changed the following things for me but it still doesn't work.

file_uploads

upload_max_filesize

max_input_time

memory_limit

max_execution_time

post_max_size


Thanks

Holygamer22:04, 27 January 2012

Do the new settings appear in phpinfo(); ? Restarted apache?

Subfader14:09, 28 January 2012

Yes

Holygamer14:11, 28 January 2012
 

Sorry, i fixed my incomplete sentence in the post above.

LimitRequestBody is set in your httpd.conf or a .htaccess file[1]. It should be noted though, that if that was the issue you would probably get a 413 Request Entity Too Large response from the web server.

At the end of the day, your issue seems to be more a http sucks for uploading large files then a config issue (in my uninformed opinion)

Bawolff17:40, 28 January 2012

Seems so. What annoys me though is that I did manage to upload a 1.5GB file several months ago but it's not working anymore.

Could you suggest any other software I could use to let people upload files to my site? Thanks

Holygamer17:52, 28 January 2012

ftp would probably be a good direction to look in.

Bawolff17:57, 28 January 2012

Unfortunately there's no way to prevent people deleting files if I use FTP.

Holygamer17:58, 28 January 2012

That depends on how you have your ftp server configured. Its entirely possible to make it upload only (but probably not the default config. For example in pureftpd you can use the -K switch and -r switch)

Bawolff19:39, 29 January 2012
 
 
 
 
 
 
 
 
Personal tools

Variants
Actions
Navigation
Support
Download
Development
Communication
Toolbox