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.
- Access your Hosting Manager.
- On the Home page, click Software or the [ v ] arrow symbol. Click Select PHP Version.
- On the next page, look for Switch to PHP Options located at the upper right corner, and then click.
- 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.
- 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.
- Access your File Manager.
- Scroll to public_html folder and locate your php.ini file.
- 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.
- Right-click on the php.ini file and click Edit. A pop-up window will appear, click Edit to continue to the editor page.
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.
- 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!
Fantastic...Thank you for your feedback =)
Sorry... Please submit a support ticket or try another search.
Support ticket has been sent to your email, please check for your ticket id.
- How to Increase the File Upload Size in php.ini
- Disable the WP-cron.PHP in WordPress
- How to Fix Memory Exhausted Error in WordPress, Joomla, and Moodle
- Editing Files With File Manager in Web Hosting
- How to Fix an Internal Server Error in WordPress