Increase the maximum allowed size for uploaded files

If you need to upload big files to your application, you will need to tweak some PHP settings, by default the max_upload_size option is 2MB and post_max_size is 8MB.

To update these options, you need follow these steps:
  • Log into your cPanel account
  • Go to the "Select PHP Version" module
  • Click on the  "Switch to PHP Options" link

On that page, you will want to update both max_upload_size and post_max_size to fit your needs.

Be advised that uploading very big files using PHP means having a single PHP script running for a long time (for each upload), this means having one entry process running (for each upload), reducing the number of concurrent visitors your site can handle, use this option with caution.
  • 7 Users Found This Useful
Was this answer helpful?

Related Articles

How do I get to cPanel?

The easiest way is to go to http://yourdomain.com/cpanel

How do I backup my website?

The easiest way to backup your website is by doing so via CPanel.    By logging into CPanel, you...

How do I upload files?

You can upload your html and images to your website via FTP.    You will use the login specified...

How do I password protect my website?

With CPanel, you have the ability to password protect a folder within your website. You can...

My site is listed as an attack page?

When visiting your website, if you receive an error stating it's an attack page, that means that...