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.

Was this answer helpful?

 Print this Article

Also Read

How do I change permissions on my files?

Login to your Control Panel at www.yourdomain.com/cpanel using your cPanel username and...

How do I password protect my website?

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

How can I view or change my database encoding?

You can get the encoding for your database by the following steps. Log into cPanel and click on...

I get weird characters on my WordPress blog

If you are using SuperCache with Wordpress, you need to make sure you disable compression or else...

My website is down

WAIT! Don't panic! We ask that you please go through this checklist before contacting us....