What is the Upload Max Filesize?
The ‘upload_max_filesize’ value is what decides the limit of the file size that can be uploaded to a website. When this value is set to a certain number of bytes, all uploads beyond it will be turned down and will fail to be uploaded. By default, this value is set to 2 MBs in PHP. That is a low threshold, and nowadays, with newer websites and applications, it can be quite insufficient.How to increase the PHP Max Upload Size in cPanel?
With cPanel, it’s very easy to increase the max upload size:- Head over to the main menu in cPanel. Go under Software and open Select PHP version.
- Click on Options and scroll down to ‘upload_max_filesize’.
- From the drop-down menu, set the maximum file size you would like. That’s it.
Some things to remember
- When increasing the uploading max filesize, the post max size should be equal to or greater than the upload max filesize. There is another value called the ‘Memory limit’, and this should be larger or equal to the post max size as well: Upload Max Filesize ≤ Post Max Size ≤ Memory Limit
- This limit applies when uploading to the site directly, e.g. within the /wp-admin/media folder. The upload filesize within the File Manager in cPanel is up to 2GB.
- If you need to upload larger files than 2GB, use FTP or SSH.