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.
;;;;;;;;;;;;;;;;
; 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
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?
Email: | support@WebHostingHub.com | Ticket: | Submit a Support Ticket |
---|---|---|---|
Call: | 757-416-6627 | Chat: | Click To Chat Now |
We value your feedback!
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.
new! - Enter your name and email address above and we will post your feedback in the comments on this page!