Loading...

Knowledge Base

How to Increase the File Upload Size in php.ini

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.

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:

  1. Access your File Manager.
  2. Scroll to public_html folder and locate your php.ini file.
  3. Right-click on the php.ini file and click Edit. A pop-up window will appear, click Edit to continue to the editor page.
  4. 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.

  5. 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:

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!

Did you find this article helpful?

 
* Your feedback is too short

Loading...