Docker: PhpMyAdmin has an upload limit of 2048KiB
Use like this UPLOAD_LIMIT
env in docker. This is from my docker-compose.yml. Default value for UPLOAD_LIMIT
is 2048K which is 2048KiB. Setting value to 300M increases it to 300MiB.
Reference: https://github.com/phpmyadmin/docker#environment-variables-summary
phpmyadmin: image: phpmyadmin/phpmyadmin container_name: 'php7.3-phpmyadmin' restart: 'always' links: - mysql environment: PMA_HOST: mysql PMA_PORT: 3306 UPLOAD_LIMIT: 300M ports: - '8082:80' volumes: - /sessions
I implemented UPLOAD_LIMIT
ENV variable in
https://github.com/phpmyadmin/docker/pull/261/files#diff-80edf79b0f382a3c6e871ac209ffd6abR57
the following worked very well.My docker-compose.yml contains this:
phpmyadmin: image: phpmyadmin/phpmyadmin container_name: some-name env_file: - phpmyadmin.env depends_on: - mariadb volumes:
The following entry was added to the phpmyadmin.env: UPLOAD_LIMIT=256MBThe larger number (Maximal: 256MiB) showed up right after the container was brought down and was back up again.