Answer the question
In order to leave comments, you need to log in
Why are files larger than 2 megabytes not uploaded?
There is a project on Yii, after updating php to 7.0.4, files larger than 2 megabytes stopped uploading, in php.ini upload_filesize and post_max_size are 200M each, for verification I put in Index.php phpinfo (); die (); Shows correctly, by 200M, but does not want to load files larger than 2MB.
Everything turned out to be simple, the server ran out of space and ubuntu reduced the size of tmp to 1 megabyte, so the files could not be loaded.
Answer the question
In order to leave comments, you need to log in
Everything turned out to be simple, the server ran out of space and ubuntu reduced the size of tmp to 1 megabyte, so the files could not be loaded.
If Apache and php as a module, then you need:
either in php.ini
post_max_size=20M
upload_max_filesize=20M
php_value post_max_size 20M
php_value upload_max_filesize 20M
I don’t remember about Apache, but nginx has a limit on uploading files.
Look at the web server.
Alternatively, model validation
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question