HTTP Error when uploading files above 7mb unless using GD Image Editor

I noticed recently that when uploading files larger than 7mb to a WordPress site that I developed, I get an HTTP Error. I’ve checked some of my PHP variables, and have verified that memory_limit is set to 256M and both post_max_size and upload_max_filesize are set to 128M. After reading this thread, I tried installing the Default to GD plugin that uses GD as the default WP_Image_Editor class.

After installing the plugin, I’m not having the issue anymore. That said, I’m curious if there’s a way to fix this issue with the newer WP_Image_Editor class?

I’ve also noticed that when I get the HTTP error, I can look at the files attached to the post I added the file to and see that the file is actually there and was successfully uploaded. However, WordPress seems to have issues displaying it in the Media browser.

I also noticed that if I upload multiple large images over 7mb, I will see the most recent image as the first item in the media library. If I delete that image, I’ll see the next most recently uploaded image. For some reason WordPress is only able to show the most recent image and the thumbnail seems to be broken. However if you navigate to the uploaded file’s URI, you can see that the file uploaded successfully.

Does anyone have an idea what’s going on with this and is this a known error in WordPress that’s being addressed? Thanks!

Read more here:: HTTP Error when uploading files above 7mb unless using GD Image Editor

Leave a Reply

Your email address will not be published. Required fields are marked *