Comments (4)
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.
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.
Ah, good to know. Glad to help!
from lychee-docker.
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)
- [Enhancement] Support Environment-Variable Configured Administrator Account
- Actions: Add results of "Test PR and Upload to Docker Hub" to "Checks" in PR
- The API documentation in the Lychee instance is inaccessible HOT 9
- Request for option to skip Set Permissions HOT 3
- app.js & app.css cannot be loaded HOT 2
- Lychee gallery not working anymore after recent update. HOT 8
- DB Error on upgrade HOT 4
- DB error since update HOT 5
- Document config parameters that are required for reverse HTTPS proxies HOT 1
- brand new site can't see images HOT 15
- Full source code in the docker image HOT 12
- Error 507 NoWriteAccessOnLogsExceptions HOT 10
- Running on subpath with nginx HOT 1
- Any uploaded or 'php artisisan lychee:sync /path/' image is blank and unviewable. HOT 4
- New environment variables not added to environment file HOT 1
- 404 docker-compose.yml on hub.docker.com HOT 1
- Photos won't show up in gallery HOT 4
- SQL Error
- Connection refused HOT 1
- 500 HttpException Attempt to read property "photo_id" on null HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lychee-docker.