php | file upload size

File upload size

Increase file upload size:

sudo nano /etc/php/7.2/fpm/php.ini

Change:

upload_max_filesize = 530M

post_max_size = 5320M

Restart php:

sudo service php7.2-fpm restart

Add the following to nginx config's server block:

client_max_body_size 532M;

Restart nginx:

sudo service nginx reload