From 90512a3be61579aae8d759969a286eccf751643c Mon Sep 17 00:00:00 2001 From: Florestan Bredow Date: Thu, 29 Sep 2016 10:45:53 +0200 Subject: [PATCH] Augmente la taille des fichiers uploadables --- config/nginx.conf | 1 + config/php.ini | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config/nginx.conf b/config/nginx.conf index 48b2e65..d796165 100644 --- a/config/nginx.conf +++ b/config/nginx.conf @@ -26,6 +26,7 @@ http { fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /var/www/html$fastcgi_script_name; fastcgi_read_timeout 180; + client_max_body_size 30M; include fastcgi_params; } } diff --git a/config/php.ini b/config/php.ini index d9a2698..e9ee88f 100644 --- a/config/php.ini +++ b/config/php.ini @@ -653,7 +653,7 @@ auto_globals_jit = On ; Its value may be 0 to disable the limit. It is ignored if POST data reading ; is disabled through enable_post_data_reading. ; http://php.net/post-max-size -post_max_size = 8M +post_max_size = 30M ; Automatically add files before PHP document. ; http://php.net/auto-prepend-file @@ -795,7 +795,7 @@ file_uploads = On ; Maximum allowed size for uploaded files. ; http://php.net/upload-max-filesize -upload_max_filesize = 2M +upload_max_filesize = 30M ; Maximum number of files that can be uploaded via a single request max_file_uploads = 20