Bedrock increase upload max size

Hi,

I’m trying to increase the upload size for posts and media on my WordPress Bedrock instance, but so far, I haven’t had any success. Here’s what I’ve tried:

  1. Changed Environment Variables in config/application.php:
  • Config::define('WP_MEMORY_LIMIT', '50M');
  • Config::define('WP_MAX_MEMORY_LIMIT', '50M');
  • Config::define('MEMORY_LIMIT', '50M');
  • Config::define('MAX_MEMORY_LIMIT', '50M');
  1. Updated .user.ini and php.ini in both the wp and wp-admin directories.
  2. Modified PHP settings by running the following command:
  • php -i | grep ini to locate php.ini
  • Set:
    • upload_max_filesize = 50M
    • post_max_size = 50M

Despite these changes, none of them have resolved the issue.

I came across a similar discussion on this forum thread, but using a plugin to increase the file size limit is not an option for me.

Has anyone else encountered this issue or know of any other possible solutions?

Additional Context:

I deployed this Bedrock WordPress application following the instructions from the Fly.io tutorial and have my MySQL instance hosted on Fly.io as well. This is a Bedrock WordPress application.

I came across a similar discussion on this forum thread, but using a plugin to increase the file size limit is not an option for me.

Thanks!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.