• Hi there!

    Using wp-env which is terrific. However I am having one main issue and that is getting the config setup.

    The wordpress documentation mentions WP_MEMORY_LIMIT to increase memory limit but not MAX_UPLOAD_FILESIZE, so my question is what is the variable name for max upload filesize. It should be WP_UPLOAD_MAX_FILESIZE but that did not work, WP_MEMORY_LIMIT worked great though. Is this a bug in wp-env?

    Best,
    Benjamin

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter waye1234

    (@waye1234)

    For clarification my .wp-env.json looks like this

    {
        "plugins": [
            "./wp-content/plugins/all-in-one-wp-migration"
          ],
        "themes": [
            "./wp-content/themes/mobileinteraction"
          ],
          "config": {
            "WP_UPLOAD_MAX_FILESIZE": "128M",
            "WP_MEMORY_LIMIT": "256M"
          }
      }

    Hello! I have the same question. Did you find an answer?

    Thread Starter waye1234

    (@waye1234)

    Hey @silviubogan you can use WP_MEMORY_LIMIT but for some reason the WP_UPLOAD_MAX_FILESIZE doesn’t work instead I installed a plugin the increased the max upload size “max-upload-filesize”. Not optimal but I didn’t find any solution through the wp-env.json please share if you find one.

    Cheers

    Hi, guys!
    I also have same question and found blog post written in Japanese.

    That says

    wp-env run cli vi .htaccess

    then add

    php_value upload_max_filesize "8M"

    I added “max_post_size” on next line.
    I hope this make you happy.

    Change upload_max_filesize on wp-env

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘wp-env config’ is closed to new replies.