Blogging Guide

How To Increase File Upload Limit In WordPress Websites

It is important to Increase File Upload Limit in wordpress especially if you intend uploading large zip files containing plugins, themes or other files like large mp3 and mp4 on your wordpress website.

There are many methods to increase file upload limit in WordPress. In this post, I’ll show you how to go about the whole process of increasing your file upload limit in WordPress Content Management System.

METHOD 1 – VIA CPANEL

STEP 1 – This method involve editing the .htaccess on your blog database directly using cpanel or any other file manager you’re using to access your site files.

Visit your hosting company where you’re hosting your website files and login to the cpanel or any other file manager that you’re using.

Cpanel – Techy9ja.com.ng

Kindly login with your username and password. Sometimes, some ISP may use dynamic IP address switching which may cause and cause login issues on your cpanel. In this case you will get an error message like shown below.

Your IP address has changed. Please log in again.

You can fix this issue by using a vpn to access your cpanel. This will help stabilise your IP address making it static.

STEP 2 – After accessing your cpanel, click on File Manager on your cpanel dashboard.

File manager – Techy9ja.com.ng

STEP 3 – Go to public_html folder on your file manager or any other location your website database/files is saved.

Public_html – Techy9ja.com.ng

STEP 4 – Access .htaccess file on your public_html directory or the root location of your site files. Some hosting by default hide dot files(.). So you have to change the cpanel settings/preferences and make the dot files visible. This can be done by clicking on settings/preferences on the top right hand corner of the cpanel interface. Tick show hidden files (dot files)

USERS ALSO READ  Tools For Checking The Online Status Of All Websites Or Blogs
Cpanel Preferences – Techy9ja.com.ng

STEP 5 – Navigate to the .Htaccess and edit the file. Add the following line of code to it.

php_value upload_max_filesize 1024M php_value post_max_size 1024M php_value max_execution_time 1000 php_value max_input_time 1000

Htaccess – Techy9ja.com.ng

Save the settings and exit. You have now successfully increase file upload limit in wordpress website.

METHOD 2 – VIA PLUGIN

Yea, it’s possible to use a plugin to increase file upload limit in wordpress websites. If you don’t want to go through the hassle of the first method I gave above, then this plugin method of increasing file upload limit in wordpress would really be helpful.

The plugin name is Increase Maximum Upload File Size.

The plugin – Techy9ja.com.ng

Go to your WordPress Dashboard. Click on Plugins. Click on Add new, then search for “Increase Maximum Upload File size” then install and activate the plugin.

How To Create Customised Download Buttons On WordPress Blogs

Once the plugin is installed, go to plugin settings and select the value of the file upload size your want.

Select file upload limit in wordpress – Techy9ja.com.ng

Save the settings on the plugin. You have now successfully increased the file upload limit in wordpress.

METHOD 3 – VIA FUNCTIONS.PHP

This method involve editing the Functions.php in your website theme directory. This should be edited and added to the current theme you’re using on your website. It is important to note that all codes added will be removed if you change the theme on your blog and the file upload limit will revert back to the default value.

To access the functions.php file, kindly access your cpanel or any other file manager you’re using to access your site files. Go to the root directory where your site files is stored. By default, it’s stored in public_html. Go to wp-content and then click on themes folder. Select the theme you’re currently using on your wordpress website and you’ll see the functions.php file. Edit the file and add the code below.

USERS ALSO READ  4 Best Security Plugins For WordPress
Functions.php – Techy9ja.com.ng

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

Save the changes and exit. You have successfully increased the file upload limit in your wordpress website.

METHOD 4 – VIA PHP.INI

This is another method used to increase the file upload limit in wordpress. This method involve adding lines of code to the php.ini file in your website files directory. You can use file manager on cpanel to access the file. The php.ini is located on the root directory on the same location where your site files is stored. If you cannot see the file, you have to create new file named php.ini and then add the code to it.

Copy the code below and save it on php.ini.

Php.ini – Techy9ja.com.ng

METHOD 5 – VIA WP-CONFIG.PHP

Yeah. I would not forget this important method on how to increase file upload limit in wordpress websites. The WP-CONFIG.PHP file controls the connection of the wordpress website to the database. You can also add codes to the file to increase the upload limit of files on your website.

wp-config.php – Techy9ja.com.ng

Go to root directory of your files and access the file. Edit and add the codes below.

@ini_set( ‘upload_max_size’ , ’20M’ );@ini_set( ‘post_max_size’, ’20M’); @ini_set( ‘memory_limit’, ’50M’ );

Save the settings when done. That’s all.

So using any of the aforementioned methods, you can increase the upload limit in wordpress websites in less than no time.

Abasiofiok Bassey Edem
I am a Blogger, Techie and Web Designer. I am the CEO of Techy9ja.com.ng. You can reach me on my personal email - Abasiofiok.edem@gmail.com.

Leave a Reply