]> BookStack Code Mirror - website/commitdiff
Added php memory_limit note to uploads docs
authorDan Brown <redacted>
Sat, 2 Jan 2021 17:33:02 +0000 (17:33 +0000)
committerDan Brown <redacted>
Sat, 2 Jan 2021 17:33:02 +0000 (17:33 +0000)
In relation to bookstackapp/bookstack#2424

content/docs/admin/upload-config.md

index 68e1aae22de2fc28b05a90e4cab4a40048dd3dd2..f8c9a8420cd4238c650e341bbe9085f170c080f6 100644 (file)
@@ -128,11 +128,17 @@ PHP has two main variables which effect upload limits. Find your `php.ini` file
 
 If the values of these variables are low increase them to something sensible that's not too high to cause issues. Unless you need something higher 10MB is a sensible value to enter for these values:
 
-```
+```ini
 post_max_size = 10M
 upload_max_filesize = 10M
 ```
 
+If wanting to upload files over 128MB, you may also need to adjust your PHP memory limit like so:
+
+```ini
+memory_limit = 256M
+```
+
 After updating these values ensure you restart your webserver and also PHP if using PHP-FPM or something similar.
 
 #### NGINX