Home • Blog • Article

How to Fix the WordPress Upload Limit? (Easy Guide)

By Fathima Nourin TM • •

How to Increase Your WordPress Upload Limit: A Step-by-Step Guide

Encountering the dreaded “exceeds the maximum upload size” error when trying to upload a theme, plugin, or large media file to your WordPress site can be incredibly frustrating. This restriction is often set by your web hosting provider to conserve server resources, but it frequently gets in the way of site growth and development.

At SiteSuraksha, we understand that your website’s performance and functionality are paramount. In this guide, we’ll walk you through the most effective methods to increase your WordPress upload limit so you can get back to managing your content without roadblocks.

Why Does a WordPress Upload Limit Exist?

The upload limit is a safety feature configured at the server level. It prevents users from uploading files that are too large, which helps protect your server from crashing due to memory exhaustion or bandwidth spikes. However, the default limit—often set to 2MB or 8MB—is rarely sufficient for professional-grade websites, especially if you are uploading high-resolution imagery or comprehensive plugin suites.

🚨 Facing an active site error or malware warning?

Chat with an engineer on WhatsApp within 15 minutes.

💬 Chat on WhatsApp

4 Ways to Increase Your Upload Size

Depending on your hosting environment, you can adjust this limit using one of the following methods:

1. Update Your .htaccess File

If your site runs on an Apache server, you can modify the .htaccess file in your root directory. Add the following lines to increase the limit (e.g., to 64MB):

php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value memory_limit 128M
php_value max_execution_time 300
php_value max_input_time 300
        

2. Edit the php.ini File

If you have access to your server via FTP or a File Manager, locate your php.ini file. Look for the following directives and adjust the values accordingly:

  • upload_max_filesize = 64M
  • post_max_size = 64M
  • memory_limit = 128M

3. Use the functions.php File

If you cannot access your server files, you can sometimes override the limit by adding code to your theme’s functions.php file. While this is less universal, it works for many standard configurations:

@ini_set( 'upload_max_size' , '64M' );
@ini_set( 'post_max_size', '64M');
@ini_set( 'memory_limit', '128M' );
        

4. Contact Your Web Host

If you have tried the above steps and are still experiencing issues, or if you aren’t comfortable editing server files, reach out to your hosting provider’s support team. They can usually adjust these limits in a matter of seconds, ensuring that your server configuration remains optimized and secure.

Need Expert Assistance?

Managing server configurations and site maintenance shouldn’t be a source of stress. At SiteSuraksha, we provide comprehensive WordPress maintenance and security services designed to keep your platform running smoothly, securely, and efficiently.

From troubleshooting technical bottlenecks to hardening your site against emerging threats, our experts have you covered. Contact the SiteSuraksha team today to ensure your website remains a powerful, high-performing asset for your business.

Follow SiteSuraksha on Google
Add us to your preferred sources for verified WordPress & hosting guides.
FREE 30-SECOND DIAGNOSTIC

Is Your Website Fast & Secure?

Run an instant scan for security vulnerabilities, bloated plugins, and TTFB latency.

🔍 Test Your Site Now →
Map Your Issue to Guaranteed IT Care
Security & Malware
Hacks, 0-day exploits & backup failures
Pro Care (₹5,420/mo) →
Speed & Cloud Bills
Slow checkout, high TTFB & cloud waste
Pro Care (₹5,420/mo) →
ERP & Automation
GST pipelines, RPA & AI support agents
Enterprise (₹14,999/mo) →
EXPERT WORDPRESS CARE

Need Help Securing or Speeding Up Your Site?

Get 24/7 proactive security WAF, daily cloud backups, and sub-second speed optimization from ₹3,470/mo.

💬 Chat on WhatsApp Explore Plans
← Back to All Articles