The maximum file size allowed for uploads doesn't always meet the requirements of the website.  This is a setting commonly found within a file known as the PHP.INI file.  Here's an example screenshot of a program with max file size limits exceeded during an upload attempt:

Error text: file_name" has failed to upload due to an error - This file exceeds the maximum upload size for this site.

To fix the error, we will need to increase the allowe memory in your php.ini file. This is found in your hosting account folders. Below are the instructions to guide you on how to fix the php memory error in your php.ini file.

Fixing the "Maximum upload size exceeded" Error

  1. Log into your cPanel dashboard.
  2. Scroll down to the FILES section of your Cpanel, and then click on the icon labeled FILE MANAGER.
  3. Go to the web root using the File Manager.
  4. Locate the php.ini file in your public_html folder. If you do not have one, our Tech Support team can place a default one in your account, or you can create a blank file by clicking on the New File icon and naming it php.ini so you can edit and add your own settings. Once you have a php.ini file, click on the file name to highlight it in the right side of the File Manager then open it for editing.
  5. Search the php.ini file for the following text:

    ; File Uploads ;

    Whether to allow HTTP file uploads.
    file_uploads = On

    Temporary directory for HTTP uploaded files (will use system default if not
    ; specified).
    ;upload_tmp_dir =

    Maximum allowed size for uploaded files.
    upload_max_filesize = 128M

    Make sure file_uploads is set to "on", and then set the "Maximum allowed size for uploaded files" to the size that you need.
  6. Click the Save Changes button to save your changes.

This change affects all files within the directory that a PHP.INI is saved, unless the file is set to be recursive.  If it is set to be recursive, then it affects all directories as per the setting in the .HTACCESS file.  For more information, see How do I make my PHP.INI file recursive?

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Did you find this article helpful?

Post a Comment

Email Address:
Phone Number:

Please note: Your name and comment will be displayed, but we will not show your email address.

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Need More Help?

Help Center Search

Current Customers

Email: Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.