Page 1 of 2

Max filesize

PostPosted: Thu Apr 26, 2012 5:23 pm
by SHINIGAMI
Sorry that I ask what is asked.
But in my case I can not upload files larger than 2GB, but the limit in settings 5000m in both PHP and website.
If the file larger 2GB, upload stops at some point, that is after uploading something about 200Mb.
Image
And if I upload file larger 4GB, there is error "Size of the file ... is greater than limit".

Re: Max filesize

PostPosted: Thu Apr 26, 2012 6:02 pm
by SamEA
Did you try abd adjust the PHP's max_input_time and php_value max_execution_time to a greater value e.g. 500?

Re: Max filesize

PostPosted: Thu Apr 26, 2012 7:36 pm
by SHINIGAMI
I had read a lot of posts, and saw some recommendations for settings.
Here what I changed in php.ini:
post_max_size = 5000M
upload_max_filesize = 5000M
max_file_uploads = 20
memory_limit = 256M
max_input_time = 3600 (was 60)
max_execution_time = 3600 (was 30)

Re: Max filesize

PostPosted: Fri Apr 27, 2012 4:46 pm
by SamEA
Perhaps your web hoster has an external limitation preventing large uploads. Try contacting your web hoster in regards to the upload limit and request an explanation why large uploads via PHP is not working. Keep me updated.

Thank you.

Re: Max filesize

PostPosted: Fri Apr 27, 2012 6:05 pm
by SHINIGAMI
I cannot do that, because it is my own server. And there is no external limitation preventing large uploads.

Re: Max filesize

PostPosted: Sat Apr 28, 2012 2:27 am
by SamEA
Okay, what is the maximum file upload you can upload before PHP timeouts? After you know that, try to triple the time out and max execution time value, and see if you can upload larger files than before.

Re: Max filesize

PostPosted: Sat Apr 28, 2012 8:10 am
by SHINIGAMI
Sorry, I'm still a beginner, please give me a hint how to do it.

Re: Max filesize

PostPosted: Sun Apr 29, 2012 12:02 am
by SamEA
Open ./upload.php and add this line
Code: Select all
set_time_limit(0);
just after the DaddyScripts commenting section, and see if larger uploads now work.

Re: Max filesize

PostPosted: Sun Apr 29, 2012 6:47 am
by SHINIGAMI
No, it did not help.
I tried different numbers(0, 300, 3000) but it did not give any result.

Re: Max filesize

PostPosted: Sun Apr 29, 2012 6:43 pm
by SamEA
In theory that should work. I will investigate into this issue further.