generaldreamfactory

Modify the NGINX file upload limit

The maximum size for uploaded files is set to 1 MB by default in the NGINX configuration. You can add the following option at the end of this file /opt/bitnami/apps/APP_NAME/conf/nginx-app.conf to increase the allowed size for uploads. Replace the APP_NAME placeholder with the correct directory name.

client_max_body_size SIZE;

NOTE: Remember to replace the SIZE placeholder with the value you want to set. For example: client_max_body_size 8m;.

  • Restart PHP-FPM and NGINX for the changes to take effect.

    $ sudo /opt/bitnami/ctlscript.sh restart nginx $ sudo /opt/bitnami/ctlscript.sh restart php-fpm