I missed out that I have also updated the post_max_size in php.ini
Changes to php.ini not being reflected on Forge server
Dear Everyone,
I have an issue with file uploads being refused, not due to validation in my PHP code, which is working, but due to the upload_max_filesize setting in php.ini.
My forge server is running PHP 7.0 and so I have edited the setting in /etc/php/7.0/fpm/php.ini and I have used php_ini_loaded_file() to double check that I am amending the correct copy of php.ini which I am.
I have restarted the server and am still getting a 413 Request Entity too large error. However, when I tried this on my local machine, all I had to do was restart php artisan serve to get this working and everything does work correctly on my local machine.
So I am stumped - can anyone suggest any steps forward I can try?
Many thanks,
If you are using Forge, you can change the max file upload size directly under Servers -> (Your server here) -> Server details -> PHP
Please or to participate in this conversation.