The “The uploaded file exceeds the upload_max_filesize directive” error prevents you from uploading large files. Here are 3 easy ways to increase the WordPress upload limit.
Method 1: Edit php.ini (Most Effective)
Edit your php.ini file (found in your WordPress root or via cPanel) and set:
- upload_max_filesize = 64M
- post_max_size = 64M
- memory_limit = 256M
- max_execution_time = 300
Method 2: Edit the .htaccess File
On Apache servers, add this to your .htaccess file:
- php_value upload_max_filesize 64M
- php_value post_max_size 64M
- php_value max_execution_time 300
Method 3: Add Code to wp-config.php
Add this line to your wp-config.php:
- @ini_set( ‘upload_max_filesize’, ’64M’ );
- @ini_set( ‘post_max_size’, ’64M’ );
Method 4: Use a Plugin
Plugins like “Increase Maximum Upload File Size” can override the limit through the WordPress settings.
Method 5: Use cPanel
If you use cPanel hosting, find “PHP Version” > “Switch to PHP Options” and change the upload_max_filesize value there.
Still Can’t Upload Files?
Contact Finggu Infotech for professional WordPress support. We fix upload limits and other WordPress issues fast.
