If you’ve got a WordPress site, then you must be knowing how frequently you’ve to upload files to keep it active and attractive. WordPress offers a number of ways to upload themes, pictures and any other type of content to the websites.

WordPress maximum upload file size

The ways to upload files to any WordPress installation include the following:

  • Upload your media, plugin files or themes straight from the WordPress dashboard.
  • Connect with your WordPress host and access their online file manager.
  • Use an FTP client, like FileZilla, to connect to your server.

Smart WordPress users usually upload WordPress themes and plugins through a file manager. To upload media files, the WordPress Dashboard proves to be most helpful.

However, WordPress, by default, sets a cap on the maximum upload file size. That is, it doesn’t allow to upload files that are larger than a fixed size. This limit varies widely from one WordPress site to another. Some sites won’t allow you to upload a file above 4MB, whereas some other website will allow a limit up to 10MB.

File-size error on WordPress

Apparently, this is bound to put you off. But don’t worry. WordPress, with its unbelievable flexibility, will solve this problem in seconds. However, before proceeding, it is important to mention that there are several approaches to solve the problem. Here, we’ll discuss three settings, that are less complicated and hassle-free. These are as following:

The 3 WordPress settings to maximize the file upload size

In the following examples, we will reset the upload_max_filesize to 25MB and the memory_limit to 30MB. Depending on the server, any of the following solutions must deliver you the desired results.

However, as a word of caution, before making the modification in your WordPress setup, do make a backup of the files to avoid any unforeseen disaster.

Modifying the PHP.ini file

PHP.INI holds the PHP configuration for your server. It resides in your server’s root directory. Search for /php.ini/ file inside your hosting root directory. Check the “Show hidden files” feature before searching the file, because, for security reasons, it usually remains hidden.

Open the file in a text editor and modify the three settings to fit your requirement.

Modifying the /PHP.ini/ file

However, it may happen that the PHP.INI doesn’t exist in your system. In that case, you’ll have to create it.

  • Right-click the mouse and select Add New File
  • Open the file and paste the three lines of code given above
  • Just save the file as PHP.INI

The file may also reside as PHP5.INI and don’t get confused by its name altering.

Modifying the /.HTACCESS file/

The .htaccess file is also a sensitive file that contains a number of your server configurations. Usually, this too remains hidden inside the root directory of the server. Just open it using a text editor and paste the following three lines at the end (where it reads: #END WordPress) of the .htaccess file.

Modifying the /.HTACCESS file/

In case, the .htaccess file does not exist, just create it in the way we discussed above creating the PHP.INI file.

Modifying a WordPress file

In this method, you need to paste the three lines of code given below to your WordPress setup files like wp-config.php, themes-functions.php. However, this is never the recommended solution to the problem. You may try this out only when the other alternatives fail.

Modifying a WordPress file


Straightaway from the platform

There are some WordPress hosts that provide a built-in feature to modify the upload file size limit. If you are having any of these service providers as your host, you can solve the problem right from the platform.

Go to Servers at the bar on the top, select your server, select Settings, and Packages from the left pane. Here, you’ll find the Upload Size under the basic settings tab. Just change it to fit your requirement.

Modifying straight from the WordPress platform


Using plugins

If you don’t want to accomplish the task manually, you can use the necessary plugins. First, search out the right plugin compatible with your present WordPress version.

Left panel of the WordPress dashboard > Plugins > Add New

Modifications through Plugins

Select, the right plugin and just install it. Once, the plugin gets activated, it automatically increases the max file upload size limit.

As the last ditch option, if nothing works out, just contact your hosting service provider and request them to increase that limit for your WordPress application. Most hosting services provide 24X7 support. So, getting in touch with them will not be an issue.

Leave a Reply


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

Reload Image

Find us on Facebook

Subscribe to our Newsletter