How to Increase Media File Maximum Upload Size in WordPress

The maximum file upload size for media files in WordPress is determined by two factors: the maximum upload size set by WordPress and the maximum upload size set by your web host.

To increase the maximum upload size for media files in WordPress, you can follow these steps:

  1. Increase the maximum upload size in WordPress:
    • Login to your WordPress dashboard
    • Go to “Media” -> “Add New”
    • You will see the maximum file upload size limit on the screen
    • If you see that the maximum file size is less than what you want, then you can increase it by adding the following line to your wp-config.php file:
      • define('WP_MEMORY_LIMIT', '256M');
    • This will increase the maximum upload size to 256MB. You can change the value to any amount that you need.
    • If this doesn’t work, you can try the following method.
  2. Increase the maximum upload size in your web host:
    • Locate your .htaccess file in the root directory of your WordPress installation.
    • Add the following lines at the end of the file:
      • php_value upload_max_filesize 256M
      • php_value post_max_size 256M
      • php_value memory_limit 256M
      • php_value max_execution_time 300
    • This will increase the maximum upload size to 256MB, the maximum post size, memory limit, and execution time. You can change the values to any amount that you need.
    • Save the file and upload it to your server.

If you don’t have access to your .htaccess file, you can try contacting your web host and asking them to increase the maximum upload size for you.

It’s important to note that increasing the maximum upload size can have an impact on your server’s performance, so it’s recommended to use this only when necessary and to keep the size as small as possible for better site performance.

Share on facebook
Share on twitter
Share on linkedin
Share on pinterest

Leave a Reply

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

Testimonials
Subscribe weekly news

Integer posuere erat a ante venenatis dapibus posuere velit aliquet sites ulla vitae elit libero 

Login