Configuring File Upload
https://www.bookstackapp.com/docs/admin/upload-config/#migrating-to-secure-images
Migrating to “Secure” ImagesBack-up your BookStack instance before attempting any migration If you are migrating to the Do not simply copy and leave content in the |
Changing Upload LimitsBy default, a lot of server software has strict limits on upload sizes which causes errors when users upload new content. BookStack enforces its own limit but there may also be limits configured as part of PHP and your web sever software. If you run into problems with upload size limits follow the below details for BookStack, PHP and whichever web server you use. BookStackThe upload limit in BookStack is configured through an option in your PHPPHP has two main variables which effect upload limits. Find your
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: If wanting to upload files over 128MB, you may also need to adjust your PHP memory limit like so:
After updating these values ensure you restart your webserver and also PHP if using PHP-FPM or something similar. NGINXBy default NGINX has a limit of 1MB on file uploads. To change this you will need to set the As per the example above, If you are expecting upload very large files where upload times will exceed 60 seconds you will also need to add the After updating you NGINX configuration don’t forget to restart NGINX. You can test the configuration beforehand with ApacheApache does not have any built-in limits which you will need to change but something to note is that if you are using apache and mod_php with |
No Comments