[PHP] Solve the limitation of uploading files in nginx php 413 Request Entity Too Large

Increase in the nginx configuration http block

client_max_body_size 200m;

Added to the php.ini configuration file of php-fpm:

upload_max_filesize = 200M

 

If you don’t know where the php.ini under fpm is, you can directly grep upload_max_filesize -R /etc/php to find the location

Read More:

Leave a Reply

Your email address will not be published. Required fields are marked *