Fix WordPress Upload Error: Maximum File Size Exceeded

Cannot upload images or files? Fix WordPress upload limits with these methods.

Understanding Upload Limits

WordPress upload limit is set by:

  • PHP upload_max_filesize
  • PHP post_max_size
  • PHP memory_limit
  • WordPress memory limit

Check Current Limits

  1. Go to Media → Add New
  2. See “Maximum upload file size” message

Or Create PHP Info File

<?php phpinfo(); ?>

Upload and visit to see all limits

Solution 1: Increase via wp-config.php

Add before “That’s all, stop editing!”:

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

Solution 2: Edit .htaccess

Add to .htaccess file:

php_value upload_max_filesize 128Mnphp_value post_max_size 128Mnphp_value memory_limit 256Mnphp_value max_execution_time 300nphp_value max_input_time 300

Solution 3: Create php.ini File

Create php.ini in wp-admin folder:

upload_max_filesize = 128Mnpost_max_size = 128Mnmemory_limit = 256Mnmax_execution_time = 300

Solution 4: Modify Theme functions.php

@ini_set('upload_max_filesize', '128M');n@ini_set('post_max_size', '128M');

Solution 5: Use cPanel

  1. Log into cPanel
  2. Find Select PHP Version or MultiPHP INI Editor
  3. Adjust these values:
  • upload_max_filesize: 128M
  • post_max_size: 128M
  • memory_limit: 256M

Solution 6: Contact Hosting Provider

If nothing works:

  1. Contact hosting support
  2. Request increase in PHP limits
  3. They can modify server settings

Workaround: Compress Images

Before uploading:

  • Use TinyPNG.com
  • Use Photoshop Save for Web
  • Resize to actual display size

Plugin Alternative

Install Increase Maximum Upload File Size plugin (temporary solution)

Final mention: Please feel free to contact us for upload limit configuration.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *