r/BookStack • u/graaiin • Mar 25 '26
Increase
Hi, we're using Bookstack version 26.03.2 on Ubuntu 24.04.4. We installed it via a script. Unfortunately, I can't seem to increase the file upload size. Where exactly do I need to do that? I guess I'm just too clueless :-( I always get the error "The Server cannot receive the provided amount of data. Try again with less data or a smaller file"
Thanks ♥️
2
Upvotes
View all comments
Show parent comment
3
u/evanmac42 Mar 25 '26
Nice catch finding the root cause 👍
Just a small warning: setting post_max_size = 0 means “no limit”, which works for testing but is risky in production (someone could upload huge files and exhaust memory or disk).
It’s usually better to set reasonable limits instead, for example:
upload_max_filesize = 100M
post_max_size = 100M
memory_limit = 256M
Adjust those values depending on your needs, but keeping them finite helps avoid unexpected issues.
Also make sure your web server (like Nginx) has a matching limit (client_max_body_size), otherwise it can still block uploads.