By
bn-s1
bn-s2

Table Of Content

How to Increase the Maximum File Upload Size in WordPress

How to Increase the Maximum File Upload Size in WordPress - The4™ Free & Premium Shopify Theme

At times, low file upload size limit can stop you from uploading files via media uploader, or installing plugins and themes. When using the The4 plugin, it is likely that large files need to be uploaded for migration purpose . However, the default value of max. file upload size in WordPress is approximated to 1.5MB.

Therefore, it is essential to know how the default WordPress file upload size can be improved. Here are the 4 ways to do so.

1. Update .htaccess 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

Change the numbers to the values that you need. The max execution time and max input time values are in seconds and might need to be increased further if your internet connection is slow.

2. Create or Edit an existing PHP.INI file

For this method you will need to access your WordPress site’s root folder by using FTP or File Manager app in your hosting account’s cPanel dashboard.

In most cases if you are on a shared host, then you will not see a php.ini file in your directory. If you do not see one, then create a file called php.ini and upload it in the root folder.

In that file add the following code:

upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300

This method is reported to work for many users. Remember if 64 doesn’t work, then try 10MB (sometimes that work).

[ecom-global-block]ecom-open-store-block[/ecom-global-block]

3. Update wp-config.php file


@ini_set( 'upload_max_filesize' , '128M' );
@ini_set( 'post_max_size', '128M');
@ini_set( 'memory_limit', '256M' );
@ini_set( 'max_execution_time', '300' );
@ini_set( 'max_input_time', '300' );

4. Contact hosting provider

Reach over to the customer support of your hosting provider and ask them to increase these limits for you.

Related Posts

Best Shopify Themes For Clothing
[+20] Best Shopify Themes For Clothing - Must Try
Creating an enticing and seamless shopping experience is paramount, especially for clothing...
[+19] Best Converting Shopify Themes You Must Try
[+19] Best Converting Shopify Themes You Must Try
Choosing a Shopify theme is the key to having the perfect storefront...
[+22] Best Shopify 2.0 Themes for eCommerce stores FREE & Pro in 2024
[+22] Best Shopify 2.0 Themes for eCommerce stores FREE & Pro in 2024
The design of your online store is akin to the front window...
Best Shopify Themes For Dropshipping
[16+] Best Shopify Themes For Dropshipping
Embarking on the dropshipping journey can be exhilarating, allowing entrepreneurs to curate...
The Best Shopify Theme Builder: Ultimate Guide 2024
The Best Shopify Theme Builder: Ultimate Guide 2024
In eCommerce, your website's theme is like the front window of a...
Ultimate Review: Shopify Theme Launch
Ultimate Review: Shopify Theme Launch
In the dynamic world of e-commerce, standing out is paramount. As you...
Top 20 Shopify Themes for Fashion Stores - The4™ Free & Premium Shopify Theme
Top [20+] Best Shopify Themes for Fashion Stores
The eCommerce theme structures your online store's content and gives customers a...