From 7e8ee0ba9fc439a042cf0ae5acfd8093c8866de4 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 2 Mar 2022 16:12:03 +0100 Subject: [PATCH] Fix file size upload --- conf/.env.example | 4 ++++ conf/nginx.conf | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/conf/.env.example b/conf/.env.example index d1cd9be..f27d735 100644 --- a/conf/.env.example +++ b/conf/.env.example @@ -36,6 +36,10 @@ DB_DATABASE=__DB_NAME__ DB_USERNAME=__DB_USER__ DB_PASSWORD=__DB_PWD__ +# File Upload Limit +# Maximum file size, in megabytes, that can be uploaded to the system. +FILE_UPLOAD_SIZE_LIMIT=100 + # Mail system to use MAIL_DRIVER=smtp diff --git a/conf/nginx.conf b/conf/nginx.conf index 3672207..f8d8ba4 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -4,7 +4,7 @@ location __PATH__/ { # Path to source alias __FINALPATH__/public/; - client_max_body_size 100m; + client_max_body_size 100M; client_body_timeout 120s; # Default is 60, May need to be increased for very large uploads index index.php;