openbridge / wordpress

Docker based Wordpress deployment using a collection of optimized containers w/ Nginx, PHP-FPM, MariaDB and Redis.
MIT License
73 stars 16 forks source link

Increase Max Upload Size #27

Open negonix opened 3 years ago

negonix commented 3 years ago

Hello, How can I increase this WordPress implementation's default max-upload size? It is currently set at 50mb and none of the methods found online work. Thank you

tspicer commented 3 years ago

Can you describe what you actually attempted. Since none of the methods you found worked, it would be difficult to know where to start. For example, I assume you modified the PHP server settings and the WordPress config

Zer0Down commented 3 years ago

Have you tried adding this into your wordpress.env file and restart the docker? PHP_UPLOAD_MAX_FILESIZE=500

It works. Only other issue you might have experienced in some nginx proxy environment is limitation in nginx.conf file, if you are not using any other proxy the above should work fine.