how to increase maximum upload file size in wordpress-"file exceeds the maximum upload size"
April 10, 2020 -
troubleshooting, wordpress
Solve Wordpress Error "your file exceeds the maximum upload size"
are you getting Wordpress Error "your file exceeds the maximum upload size"?
This error may occur whenever you try to manually upload Themes or Plugins in Wordpress.
I am going to explain to you how to solve this problem is the most simple and easy steps?:
Step 1: Go to your root directory location where Wordpress files are installed.
Eg for local Xampp server: Go to C:\xampp\htdocs\theme-demo (theme-demo is the root directory where WordPress is installed locally)
Eg for live serve: open your File Manager and open WWW or public_html folder.
Step 2: Search for .htaccess File and add the following highlighted code & Save Changes.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /theme-demo/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /theme-demo/index.php [L]
php_value upload_max_filesize 128M
php_value post_max_size 128M
php_value memory_limit 256M
php_value max_execution_time 300
php_value max_input_time 300
</IfModule>
# END WordPress
Note: In the above code you have below the line of code mainly.
php_value upload_max_filesize 128M -you can upload a maximum file size of 128MB (Change this value according to your need).
I hope this post helped you to Solve Error your file exceeds the maximum upload size.
Thank You