By default, your PHP file upload size is maximum 2MB file on the server. However, you can increase the maximum upload file size by changing the setting in your php.ini file. This article will guide you on how to do it via your Hosting Manager.
What is php.ini?
Php.ini is a PHP configuration file with which you can influence how PHP functions. This file is usually stored in the public_html folder and gets activated whenever PHP starts up.
If you do not see a file named php.ini in your public_html folder, you can create one in File Manager.
By default, your site will use the standard PHP settings in your server. However, if you need to revise or change any of the default PHP settings in your server, you can do so by modifying a php.ini file.
How to Increase the File Upload Size in php.ini
To increase the maximum upload file size (upload_max_filesize) in the php.ini file, follow the steps below:
- Access your File Manager.
Scroll to public_html folder and locate your 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).
; 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 the 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:
Important: Any edits made to files here will be immediately displayed on your site. As such, it is recommended to use the File Manager edit function only for small changes. Any large site changes that could damage its functionality should be done using FTP after creating a backup.
For any further assistance, you need in your php.ini configuration 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.