upload php 50M
Hi
I have a cPanel account and I am using ntPHPSelector option to use different versions of php on my sites, but for one of my sites have to increase the upload to 50M and I have tried adding a php.ini the following:
upload_max_filesize = 50M
post_max_size = 50M
The point is that if I check the info.php is displayed correctly, but when I try to upload a file that weighs 43M in my typo error I get:
PHP Warning: POST Content-Length of 50089365 bytes excede the limit of 20971520 bytes in Unknown on line 0, referer: ...
As I understand it is not considering my php.ini you are only using the one by default.
If you could help me.
Thank you,
-
Hello :) Have you tried increasing the "upload_max_filesize" and "post_max_size" values some more? You may want to try increasing the "max_execution_time" and "memory_limit" values in your php.ini file as well. Thank you. 0 -
Hi, I have the following in my php.ini: memory_limit = 128M max_execution_time = 60 upload_max_filesize = 50M post_max_size = 50M but still shows the same error. 0 -
You could try increasing the upload_max_filesize and post_max_size some more, but keep in mind that it's really better to upload files that large through FTP or File Manager. Thank you. 0 -
My upload_max_filesize was increased to 20M and 50M, however this does not work because it shows the above mentioned error: PHP Warning: POST Content-Length of 50089365 bytes excede the limit of 20971520 bytes in Unknown on line 0, referer: ... 0 -
Right, what I'm saying is that you should try increasing those limits to higher values (e.g. higher than 50M). Thank you. 0
Please sign in to leave a comment.
Comments
5 comments