Skip to content

Instantly share code, notes, and snippets.

@mrizwan47
Created August 5, 2022 11:42
Show Gist options
  • Save mrizwan47/7e0bb809378af7a3a52803f191a7b9b5 to your computer and use it in GitHub Desktop.
Save mrizwan47/7e0bb809378af7a3a52803f191a7b9b5 to your computer and use it in GitHub Desktop.
wp-env | increase upload_max_filesize
  1. CD into the theme/plugin dir: cd /path-to-your-theme-or-plugin
  2. Edit .htaccess file using vi inside the docker container using this command: wp-env run cli vi .htaccess
  3. Add the following line at the end of the file: php_value upload_max_filesize "8M"
  4. Close the vi by pressing escape a few times and then writing this: :wq and hit enter.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment