Closed Robert-Ernst closed 3 years ago
I can somewhat replicate this. Meaning, I encounter the limit on the first run of the container, once the container is restarted once, the default in of 100M in this image is used. No significant file gets touched on that restart.
I tried everything regarding the container. Restart, rebuild, up, down, sideways 🙃 I see no difference. For me it seems like that the php.ini doesn't get used. Is there any default where the 1MB originates from? What would be the error message in Bookstack if nginx would be the limiting factor?
I imagine the 1MB comes from the default in Nginx, which we bump to 100M here, this bump is the default I was mentioning in the last comment. This change does stick, which makes me believe you modified the Nginx files too much.
The error I got in my testing was the one in your issue.
I found the solution.
I use Nginx behind Nginx. So I had to update my non-dockered nginx. For those in the future, these are the necessary steps:
sudo nano /etc/nginx/nginx.conf
proxy_read_timeout 600;
proxy_connect_timeout 600;
proxy_send_timeout 600;
client_max_body_size 0;
sudo service nginx reload
@Robert-Ernst is it works?
It werks
I was busy for the last 2 hours trying to find the root cause - no success.
My error message when I am uploading is: "The server does not allow uploads of this size. Please try a smaller file size."
php-local.ini
I checked everything, the syntax, different values. No effect at all. It seems like the config file isn't read. But the files were created from the application and it's mounted correctly. I also checked the nginx config, in which I haven't changed anything nginx.conf
client_max_body_size 0;
The value is set to 0, which means unlimited.Custom HTML Head Content
<script> window.uploadLimit = 1500; </script>
My upload limit is still 1 MB.
Expected Behavior
Respect the configuration file settings to allow bigger upload attachment sizes
Current Behavior
Can't upload attachments bigger than 1MB
Steps to Reproduce
Environment
OS: Ubuntu 16.04 CPU architecture: x86_64 How docker service was installed: Like docker's documentation shows
Command used to create docker container (run/create/compose/screenshot)
docker-compose up -d
Docker logs