Max filesize

All support enquiries for DFH go in here...

Max filesize

Postby SHINIGAMI » Thu Apr 26, 2012 5:23 pm

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".
SHINIGAMI
Translator
 
Posts: 9
Joined: Thu Apr 26, 2012 1:43 pm
Location: Ukraine, Kyiv

Re: Max filesize

Postby SamEA » Thu Apr 26, 2012 6:02 pm

Did you try abd adjust the PHP's max_input_time and php_value max_execution_time to a greater value e.g. 500?
SamEA,
DaddyScripts' Admin & Developer.

Require a PHP or general IT freelancer? Don't hesitate to PM me.
User avatar
SamEA
Site Admin
 
Posts: 1165
Joined: Sat Feb 19, 2011 7:51 pm

Re: Max filesize

Postby SHINIGAMI » Thu Apr 26, 2012 7:36 pm

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)
SHINIGAMI
Translator
 
Posts: 9
Joined: Thu Apr 26, 2012 1:43 pm
Location: Ukraine, Kyiv

Re: Max filesize

Postby SamEA » Fri Apr 27, 2012 4:46 pm

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.
SamEA,
DaddyScripts' Admin & Developer.

Require a PHP or general IT freelancer? Don't hesitate to PM me.
User avatar
SamEA
Site Admin
 
Posts: 1165
Joined: Sat Feb 19, 2011 7:51 pm

Re: Max filesize

Postby SHINIGAMI » Fri Apr 27, 2012 6:05 pm

I cannot do that, because it is my own server. And there is no external limitation preventing large uploads.
SHINIGAMI
Translator
 
Posts: 9
Joined: Thu Apr 26, 2012 1:43 pm
Location: Ukraine, Kyiv

Re: Max filesize

Postby SamEA » Sat Apr 28, 2012 2:27 am

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.
SamEA,
DaddyScripts' Admin & Developer.

Require a PHP or general IT freelancer? Don't hesitate to PM me.
User avatar
SamEA
Site Admin
 
Posts: 1165
Joined: Sat Feb 19, 2011 7:51 pm

Re: Max filesize

Postby SHINIGAMI » Sat Apr 28, 2012 8:10 am

Sorry, I'm still a beginner, please give me a hint how to do it.
SHINIGAMI
Translator
 
Posts: 9
Joined: Thu Apr 26, 2012 1:43 pm
Location: Ukraine, Kyiv

Re: Max filesize

Postby SamEA » Sun Apr 29, 2012 12:02 am

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.
SamEA,
DaddyScripts' Admin & Developer.

Require a PHP or general IT freelancer? Don't hesitate to PM me.
User avatar
SamEA
Site Admin
 
Posts: 1165
Joined: Sat Feb 19, 2011 7:51 pm

Re: Max filesize

Postby SHINIGAMI » Sun Apr 29, 2012 6:47 am

No, it did not help.
I tried different numbers(0, 300, 3000) but it did not give any result.
SHINIGAMI
Translator
 
Posts: 9
Joined: Thu Apr 26, 2012 1:43 pm
Location: Ukraine, Kyiv

Re: Max filesize

Postby SamEA » Sun Apr 29, 2012 6:43 pm

In theory that should work. I will investigate into this issue further.
SamEA,
DaddyScripts' Admin & Developer.

Require a PHP or general IT freelancer? Don't hesitate to PM me.
User avatar
SamEA
Site Admin
 
Posts: 1165
Joined: Sat Feb 19, 2011 7:51 pm

Next

Return to Daddy's File Host v1.X

Who is online

Users browsing this forum: No registered users and 23 guests

cron