What is the maximum upload file size in a PHP ini file

I changed the upload_max_filesize file to 150 MB in the php.ini file.

but http: //localhost/info.php shows that upload_max_filesize is still showing 16 MB.

I also restarted the server.

what is the problem?

I can not find a solution.

+4
source share
4 answers

Also upload_max_filesize should be changed in both php.ini files .. In Apache folder and PHP folder.

+5
source

Make sure post_max_size greater than your upload_max_filesize value.

This limits the overall POST body size, which also affects the maximum download size.

You also need to make sure that memory_limit larger than post_max_size .

+10
source

Locate the php.ini file inside the wp-admin directory (if you do not find this file, see notes below)

Find this line in the php.ini file "upload_max_filesize = 2M" and replace it with a higher value (for example, "upload_max_filesize = 64M")

You can also increase your maximum message size. Find this line in the php.ini file "post_max_size" and increase it. Save the changes to the file in the wp-admin directory. Try downloading again. If you still have problems, locate this file in the root directory and make the same changes.

0
source

move the php folder to the local host folder, open php.ini press control + f find upload_max_filesize change it from 2M to what you want, and also change post_max_size from 8M so that again whatever you want, save the changes, overwrite this php file .ini file in the php folder, restart the local host and check it.

0
source

Source: https://habr.com/ru/post/1383429/


All Articles