Frequently Asked Questions

Other Languages: Español

PHP Upload Limits on Shared Hosting

Print this Article
Last Updated: June 19, 2015 9:37 AM

Your default PHP upload limit depends on the type of hosting account you have (more info):

Type Default upload limit Max
cPanel 32 MB No limit
Plesk 10MB 2GB
Web 32 MB 128 MB
Classic 32 MB 64 MB

Change your PHP upload limit

To change the limitation, edit or add the following values in your PHP initialization file (more info):

file_uploads = On
post_max_size = 50M
upload_max_filesize = 50M

The above settings change your PHP upload limit, allowing you to upload files up to 50MB in size.

Maximum upload limits

The upload limit does not guarantee an upload will complete — only that it isn't rejected by the server.

Uploads beneath the limit can still fail because of:

  • Upload speed, which can cause timeouts from your PHP script or your browser
  • Your account's resource availability, which can cause large files to fail