GithubHelp home page GithubHelp logo

Comments (4)

d7415 avatar d7415 commented on June 30, 2024

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.

from lychee-docker.

lilian-pouliquen avatar lilian-pouliquen commented on June 30, 2024

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.

from lychee-docker.

d7415 avatar d7415 commented on June 30, 2024

Ah, good to know. Glad to help!

from lychee-docker.

mck182 avatar mck182 commented on June 30, 2024

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!

from lychee-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.