Roots Discourse

Max upload size Bedrock

Hi guys, I can see this has been answered for Trellis environments here -Increase maximum upload size on development env - but how do you handle increasing upload file sizes for Bedrock? I tried defining them in application config but it’s not working.

Any help would be much appreciated!

Not Bedrock specific.
You can use the upload_size_limit and wp_handle_upload_prefilter filters.

But your server’s php config also limits the max file upload size.
The lowest value will win.

For Trellis, it may be necessary to adjust additional settings:

php_upload_max_filesize: 100M

# + overhead (should be equal or larger than php_upload_max_filesize)
php_post_max_size: 150M