I made a file upload configuration within a website. The file can be successfully uploaded to the server. But I get this error when the file size increases. In my Nginx configuration files, client_max_body_size 100M;
for http and server blocks; I added the line. But I couldn't solve the problem. What do I have to do for this?
CodePudding user response:
You also have to edit your php.ini
which is currently loaded. You can find this from <?php phpinfo();
then edit the following.
memory_limit = 64M
upload_max_filesize = 100M
post_max_size = 100M