Closed AlexKalopsia closed 1 year ago
Thanks for the detailed information. Off the top of my head, I'm not sure what's going on. I booted up the basic Docker compose stack in the repo on my Windows 11 PC with Docker Desktop and couldn't replicate the issue. I was able to upload two 3MB+ .jpg files without issue. I also tried it on my deployed Webtrees instance I run for my family and that also worked fine.
The PHP post limit is set to 50MB as you've noted. The container uses an Apache web server but that shouldn't adding any additional limits. I'm not familiar with nginx but my guess is that there may be something there blocking it, or any other part of how you're accessing Webtrees such as Cloudflare.
I'm going to close this, since now you can configure the PHP upload limit to your liking
Hi there, I am running on a media upload issue that I have tried to discuss with the webtrees code owners (https://github.com/fisharebest/webtrees/issues/4159) but it seems like this could be an issue with the docker environment perhaps.
The problem
Whenever I try and upload a new media file, nothing really happens. I select the file, give it a title and media type, i click Save but nothing happens, the popup dialog just stays open.
The browser network tab shows that there is a POST request, but it shows 117 bytes for an image that is actually 554 Kb. The server returns
500
. The docker log only shows:Here are some more findings on uploading the original image as well as smaller versions:
I initially thought it could be the super high resolution, but yeah, it turns out I need to make the image a lot smaller for it to succeed.
Notice that in the upload popup it says Maximum upload size:
51,200 KB
, so that doesn't seem to be the issue.I bashed into the docker container and did both
php -i | grep -i "post_max_size" and php -i | grep -i "upload_max_filesize"
, and they both return50MB
. I also ran these commands from outside the containers, and they both return32MB
.Details of my setup:
Webtrees: 2.0.19
nginx config:
docker-compose: