[Resolved] Image 7MB uploading HTTP error

Home Forums Support [Resolved] Image 7MB uploading HTTP error

Home Forums Support Image 7MB uploading HTTP error

  • This topic has 3 replies, 2 voices, and was last updated 8 years ago by Tom.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #188578
    Philip

    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?

    #188608
    Tom
    Lead Developer
    Lead Developer

    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.

    #188609
    Philip

    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!

    #188610
    Tom
    Lead Developer
    Lead Developer

    You’re welcome ๐Ÿ™‚

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.