Archived topic
Image 7MB uploading HTTP error
3 replies · Started by Philip on April 22, 2016
Hello Tom
This issue happen recently or it was because my most images not have more than 5.5MB but when i decided to upload large size images with high resolution that weigh 7MB and up the give HTTP error, between this HTTP error was the cause to find your great theme my hosting company told that theme i had at that time was causing this error.
Can you tell me at the moment is there some limit by the theme,add-ons or the issue can be with host or some plugin?
People love blaming the theme ;)
There's nothing in GP that limits anything like this, it's actually a WordPress limit.
You can try adding something like this to your functions:
@ini_set( 'upload_max_size' , '64M' );
@ini_set( 'post_max_size', '64M');
@ini_set( 'max_execution_time', '300' );
Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/
However, adding images this big will be terrible for your load time/SEO.
i have this added to my user.ini file but not work.
memory_limit = 512M
upload_max_filesize = 64M
post_max_size = 64M
It worked with your code added to functions.php,thank you very much!
You're welcome :)
