Hot Posts

6/recent/ticker-posts

How to Solve Wordpress Error "your file exceeds the maximum upload size"

 

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 in 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.

# Begin WordPress
<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




Post a Comment

0 Comments