I was trying to upload this photo of my dog to test out some things and hit an issue with https-portal and the wordpress docker images. I thought I’d share my fixes since it wouldn’t let me upload anything over 1MB.
The https-portal has a limit of 1M, so you need to add the CLIENT_MAX_BODY_SIZE
environment variable to whatever size you want, I went with 500M so I added that to my docker-compose file.
The wordpress container has a php.ini limit of about 2M as well, so you need to modify the uploads.ini file to be:
file_uploads = On
memory_limit = 500M
upload_max_filesize = 500M
post_max_size = 500M
max_execution_time = 600
That should do it. Finally to tie it all together if you’re using docker-compose you’ll need to add a volume section to copy that file into docker:
volumes:
- ./uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
Hope this helps someone!