E
E
Evgeny Akhmetov2016-03-14 12:49:58
Yii
Evgeny Akhmetov, 2016-03-14 12:49:58

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

3 answer(s)
E
Evgeny Akhmetov, 2016-03-14
@asperin2

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.

D
Danil Sapegin, 2016-03-14
@ynblpb_spb

If Apache and php as a module, then you need:
either in php.ini

post_max_size=20M
upload_max_filesize=20M

either in .htaccess / httpd.conf / virtualhost include
php_value post_max_size 20M
php_value upload_max_filesize 20M

D
Dmitry Voronkov, 2016-03-14
@DmitryVoronkov

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 question

Ask a Question

731 491 924 answers to any question