• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

JustBrightMe

Be Smart and Don’t Stop Learning

  • Blogging
  • SEO
  • WordPress Guide
  • Apps List
  • How To
Home » WordPress Guide » How to Increase Maximum Upload File Size in WordPress

How to Increase Maximum Upload File Size in WordPress

Do you want to increase maximum upload file size in WordPress? 

When you upload a big file size via media uploader, then this problem is often encountered, and the file is not uploaded. In this article, I’ll tell you how to increase the maximum file upload size in your WordPress site.

  • How to Check Maximum Upload File Size in WordPress
  • How to Increase Maximum Upload File Size in WordPress
    • 1. Theme Functions File
    • 2. Create or edit existing php.ini file
    • 3. htaccess Method

How to Check Maximum Upload File Size in WordPress

When we upload a file via default media uploader, WordPress automatically displays the Maximum Upload File Size Limit. To check Maximum Upload File Size Limit, click on Media >> Add New. Here you can see Maximum Upload File Size Limit

Maximum upload file size

How to Increase Maximum Upload File Size in WordPress

To increase the maximum upload file size is not a hard task. You can easily increase it. Just you need to add some code to your WordPress site. Here, we are going to show you 3 methods to increase upload size limit.

So, let’s get started…

1. Theme Functions File

To Increase the Maximum File Upload Size in WordPress, add the below code to the theme function file. This will increase your upload size.

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

2. Create or edit existing php.ini file

To edit php.ini file, search it in your website root folder. If this is not in your root folder, then create a new php.ini file and upload it to the root folder. After this add the code to your php.ini.

upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300

If 64mb does not work then try 10mb or other values.

3. htaccess Method

You can also use htaccess to increase Maximum Upload File Size. Find and edit the htaccess file in the root folder.

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

If these methods do not work with your hosting package, then contact with web hosting provider to increase your WordPress upload file size.

Find this article helpful? Don’t forget to share!

You may also like:

  • How to Setup Cloudflare Flexible SSL for WordPress
  • How to Change WordPress Login Page URL
  • 20 Ways How to Speed Up WordPress Site
  • 42 Most Common WordPress Mistakes to Avoid

About AMAN SINGH

AMAN SINGH, who owns JustBrightMe, is a full-time blogger and loves sharing content on WordPress, SEO & Blogging Tips.

Reader Interactions

Leave a Reply Cancel reply

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

Primary Sidebar

Recently Published Articles

The best video streaming apps for Android

Photo Download Apps for Android

Best Shayari App for Android

WhatsApp Video Status Download Apps

18 Best Document Scanner Apps for Android 2022

The Best Sticker Maker App for Android 2022

Best Birthday Video Maker Apps for Android

How to Book Gas Cylinder Through WhatsApp

How to Watch IPL in Jio Phone

The 15 Best Logo Maker Apps for Android

© 2015–2022 · JustBrightMe | All Rights Reserved

  • About us
  • Privacy Policy
  • Sitemap