Home » Plugin Issues » Plugin Installation & Activation » How to Fix “Unable to Upload Plugin Due to File Size Limit” in WordPress

How to Fix “Unable to Upload Plugin Due to File Size Limit” in WordPress

Solution verified by Salah Uddin

Salah Uddin

A Top rated WordPress expert fixing bugs, optimizing speed, and building better sites. Helping you run faster, smoother, and hassle-free.
Quick Tips:

This issue happens when your hosting limits the size of uploaded files. To fix it, increase the upload_max_filesize value in .htaccess, php.ini, or wp-config.php. Alternatively, upload the plugin via FTP. WPFix247 can help if you’re stuck.

✅ Step-by-Step Fix for “Unable to Upload Plugin Due to File Size Limit”

Sometimes when you try to upload a plugin via the WordPress dashboard, you may run into this frustrating message:

“The uploaded file exceeds the upload_max_filesize directive in php.ini”

This issue happens when your hosting configuration sets a low limit on the maximum file size that can be uploaded via WordPress.

Solution 1: Increase File Size Limit via .htaccess

  1. Login to your hosting panel or access your site via FTP.
  2. Open or create the .htaccess file in your WordPress root directory.
  3. Add the following lines to the bottom:
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 300

Save the file and refresh your site.

Solution 2: Modify php.ini (If You Have Access)

  1. Go to your hosting File Manager or FTP.
  2. Locate the php.ini file (often in the root or inside public_html).
  3. Add or update the following lines:
upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300

⚙️ Solution 3: Update via wp-config.php

You can also define limits in wp-config.php:

@ini_set( 'upload_max_size' , '64M' );
@ini_set( 'post_max_size', '64M');
@ini_set( 'max_execution_time', '300' );

Place this near the top of the file before the line that says /* That's all, stop editing! */.

Solution 4: Use FTP to Upload Plugin

  1. Extract the plugin ZIP on your computer.
  2. Use FileZilla or your hosting file manager to upload the extracted folder to: wp-content/plugins/
  3. Go to your WordPress dashboard → Plugins → Activate the plugin.

Need Help?

If these steps seem overwhelming or don’t work due to hosting restrictions, the WPFix247 team is always here to help. We can increase your limits and upload the plugin for you—quickly and securely.

Leave a Comment