How to Increase the Maximum Upload File Size in WordPress Using Some Ways
Are You Struggling with uploading large files on WordPress? No worries, we’ve shared the solution for you! In this guide, we’ll walk you through the process of increasing the maximum file upload size in WordPress. By the time you finish reading this article, you’ll know how to edit the upload limit according to your requirements. Let’s start reading.
What Is the Maximum Upload Size for WordPress?
In the process of website development, you’ll inevitably need to upload various media files such as images, videos, themes, and plugins. However, if the upload file size is restricted to the minimum, it can pose a significant obstacle when dealing with larger files. The maximum upload size for WordPress typically ranges from 2MB to 150MB, depending on your hosting provider and server configuration. However, this limit can be adjusted by modifying your WordPress settings or server configurations to accommodate larger file uploads.
How to Check the Current Maximum Upload Size in WordPress?
When you’re uploading images or other media in WordPress, the platform will automatically display the maximum file upload size limit. To check the current maximum upload size in WordPress, you can follow these steps:
- Login to Your WordPress Admin Dashboard: Navigate to your WordPress admin dashboard by entering your website’s URL followed by “/wp-admin” in your web browser’s address bar. Log in with your username and password if you haven’t already.
- Go to Media Settings: Once logged in, in the left-hand menu, hover over or click on “Settings” and then click on “Media”. This will take you to the Media Settings page.
- Check Maximum Upload File Size: On the Media Settings page, you should see a field labeled “Maximum upload file size” or “Max upload file size”. This field typically displays the maximum file size allowed for uploads in WordPress. The size might be displayed in kilobytes (KB) or megabytes (MB).

If you can’t find the maximum upload size in the Media Settings, it might be restricted by your hosting provider or server configuration. In that case, you might need to check your server’s PHP settings or consult your hosting provider’s documentation or support team for assistance.
Alternatively, you can use a WordPress plugin like “WP Maximum Upload File Size” or “File Manager” to check and manage the maximum upload size. These plugins can provide more detailed information and sometimes offer the ability to adjust the upload size limit directly from the WordPress admin dashboard.
Some Ways to Increase WordPress Maximum File Upload Size
In WordPress, there are several methods to increase the maximum upload size, often involving file edits. But don’t fret, we’ve got you covered in this section. We’ll guide you through each step to ensure a smooth process.
Way 1: Update your .htaccess file
To increase the maximum upload size in WordPress, you can edit your site’s .htaccess file. Login to your hosting dashboard, Once logged in, navigate to File Manager, locate the .htaccess file in your site’s root directory, and insert the following snippet:
Step 1: Log in to your hosting dashboard. After login, find “File Manager”

Step 2: Click File Manager and find “public_html” on your cPanel.

Step 3: Check public_html and find .htaccess If you do not it then click the right top bar settings and mark show hidden files and then save it. Now show .htaccess and edit it and use the below code on this file.
php_value upload_max_filesize 128M
php_value post_max_size 128M
php_value memory_limit 256M
php_value max_execution_time 300
php_value max_input_time 300
Now check it’s showing an Upload size of 2MB to 128 MB. you can change this amount if you need more.
Way 2: Create or edit an existing “php.ini” files
If you have php.ini files on your public_html then edit this file or if not then create a new file and rename it “php.ini” name. Now edit it and use the below code and save it. look its working properly.
upload_max_filesize = 128M
post_max_size = 128M
memory_limit = 264M
max_execution_time = 300
Way 3: Editing functions.php file
Yet another alternative is to modify the functions.php file of your WordPress theme. This can be accomplished either through FTP or directly from your hosting’s File Manager. Locate the functions.php file within ~/wp-content/themes/yourtheme/functions.php directory. Once found, append the following code snippet to the bottom of the file. Or you can do this after login your WordPress website dashboard and scroll down and find theme editor. Appearance -> Theme Editor
Open the theme functions file (functions.php) [On the right side of the screen, under Theme Files, select functions.php.] and add the following code to the file. Once youโre done, save the changes.
@ini_set( 'upload_max_size' , '64M' );
@ini_set( 'post_max_size', '64M');
@ini_set( 'max_execution_time', '300' );
Way 4: Edit your wp-config.php File
Numerous online tutorials suggest that you can boost the maximum upload file size by including the following directives in your wp-config.php file.
@ini_set( 'upload_max_size' , '20M' );
@ini_set( 'post_max_size', '13M');
@ini_set( 'memory_limit', '15M' );
Regrettably, this method is no longer viable due to recent PHP configuration mode changes. According to this document, directives controlled by the ini_set() function are associated with various PHP changeable modes, necessitating their setup in specific configuration files.
The upload_max_size and post_max_size variables fall under the PHP_INI_PERDIR changeable mode and should be configured in either php.ini, .htaccess, httpd.conf, or .user.ini files.
Therefore, we advise selecting one of the alternative methods we’ve recommended to increase the file upload size for your WordPress site.
Way 5: Use a WordPress Plugin to Increase Upload File Size
An additional option for increasing the max upload size in WordPress is through the use of a plugin. One such example is the Big File Uploads plugin. This plugin displays the default upload size configured on your server and provides the option to increase it if there is available space to do so.

We trust this article has assisted you in expanding the maximum file upload size in WordPress. If you face any problem contact with our support freely. Thank You.