How To: Change the Maximum Size of Uploaded FilesΒΆ

To change the maximum size of a file that you can upload:

  1. Go to the root directory of your server.

  2. Find and open the php.ini file.

  3. Find the following line:

    upload_max_filesize = 2M
    

    (2M stands for 2MB)

    and replace it with:

    upload_max_filesize = 30M
    
  4. Save your changes.

    Note

    If php.ini doesn’t exist in the root directory of your server, you can create this file and add the line shown above. If adding this file doesn’t help, it may be because this file isn’t supported. In that case, contact your hosting provider to set the maximum allowed size for the files uploaded to the server.