Other things to consider
Some files that are uploaded, video for example, can be up to 200 mb, by default most web servers have configured a much smaller limit. You will need to check this.
In php.ini
:
post_max_size = 200M
upload_max_filesize = 200M
Then, restart your PHP process. For php fpm, you can restart with:
sudo systemctl restart php8.1-fpm.service sudo systemctl reload php8.1-fpm.service
In nginx.conf
:
http {
client_max_body_size 200M;
}
Then, sudo systemctl restart nginx
For Apache, /etc/httpd/conf/httpd.conf.
LimitRequestBody 209715200
Then: sudo systemctl restart httpd