Closed lilian-pouliquen closed 1 year ago
Hi. Did you also update the line
client_max_body_size 100M;
in the nginx config? It may also be worth checking any upstream reverse proxies/etc.
I remember thinking in the past that that error needs changing, but I haven't done it yet.
The actual error is
Upload failed. The PHP post_max_size may be too small! Otherwise check the FAQ.
so is correct.
Hi, thanks for your answer.
I already changed the client_max_body_size
to match the wanted post size (500 MB).
However, I did not check the upstream reverse-proxies.
My server is behind Cloudflare and I use HAProxy for my reverse-proxies. I found that HAProxy has no limit in upload. I searched a bit more and found that Cloudflare is limiting uploads to 100 MB for free and pro plans.
Thanks for your help again, I would not have thought of the reverse-proxies.
Ah, good to know. Glad to help!
I had the exact same issue - running the latest docker image and
also have adjusted the nginx.conf
file as per the documentation
but I was still getting
Upload failed. The PHP post_max_size may be too small! Otherwise check the FAQ.
I just wanted to confirm the culprit was indeed a reverse proxy, in
this case it was nginx running in another docker container, since
it has the default upload limit set to 1M
.
Setting
http {
...
client_max_body_size 100M;
...
}
in the reverse-proxy config fixed the issue (could also be set in the
server { .. }
section for single app).
Just wanted to mention that, hoping it helps someone else too!
Hello, I was trying to upload a video that exceed the default 100 MB allowed by Lychee and got the following error:
I tried to change the defaults by setting the following in the nginx.conf:
I recreated the container with the modified
nginx.conf
mounted but I get the same error. I searched if there was already an issue that help solving this but nothing more than follow the documentation as I did.If you need any piece of information, please tell me. Here is the diagnostics of Lychee:
Thank you for your help.