Knowledge Base

Increase the File Upload Size in WordPress

One of the most common errors that occur with WordPress has something to do with the file size you have uploaded. This happens whenever you have exceeded the maximum upload file size prohibited by WordPress. If you encounter this, you can change the setting in the Hosting Manager or in the php.ini file. By changing the setting, you can upload larger files.

In this guide, you’ll learn how to change the file upload size for your WordPress via Hosting Manager and php.ini file.

How to Change the File Upload Size in the Hosting Manager

For your convenience, we advise you to change the setting using the Hosting Manager since it's more user-friendly than the php.ini file.

  1. Access your Hosting Manager.
  2. On the Home page, click Software or the [ v ] arrow symbol. Click Select PHP Version.
  3. On the next page, look for Switch to PHP Options located at the upper right corner, and then click.
  4. Next screen, PHP settings will be displayed. Look for file_uploads. Make sure that it is set to On.
    If not, change the setting by clicking Off. A drop-down menu will appear. Select On, and click Apply.
  5. Then scroll down and look for upload_max_filesize. Change the maximum file size as you desired. Then, click Save.

How to Change File Upload Size in PHP.ini File

As mentioned, you can also change the file upload size using a php.ini file. To do this, follow the steps below.

  1. Access your File Manager.
  2. Scroll to public_html folder and locate your php.ini file.
  3. Inside the public_html folder, look for the php.ini file.
    If you don’t see the php.ini file, you can create it by following the steps in this linked guide to learn how to create a php.ini file.
  4. Right-click on the php.ini file and click Edit. A pop-up window will appear, click Edit to continue to the editor page.
  5. On the editor page, search for the following text:
        ; File Uploads ;
        ; ;;;;;;;;;;;;;;
        ; Whether to allow HTTP file uploads.
        file_uploads = On
        ; Temporary directory for HTTP uploaded files (will use system default if not specified).
        ;upload_tmp_dir =
        ; Maximum allowed size for uploaded files.
        upload_max_filesize = 128M (This is where you set your preferred maximum upload size.)
    Make sure that the file_uploads section is set to on, and the Maximum allowed size for uploaded files is set to your preferred size.
  6. Click Save Changes.

Changes saved in the php.ini file will affect all the other files that are in the same folder as the php.ini file. However, if you want the changes to affect all directories, you can set the php.ini file to recursive through .htaccess. To do this, click the link below:

Congratulations! You just increased the file upload size in WordPress. If you need any further assistance or if you have any questions, please let us know. We'd love to help!

Did you find this article helpful?

* Your feedback is too short