13 Ways to Fix the HTTP Error When Uploading Images to WordPress

>13 Ways to Fix the HTTP Error When Uploading Images to WordPress
  • 10 Ways to Fix the HTTP Error When Uploading Images to WordPress

This post was last updated on 9/5/2018

I believe many people encountered this HTTP error when uploading images to WordPress.

The last time this happened to us was several days ago, after the hosting transfer, so I thought to share with you several solutions that may help you solve this problem.

This error appears after the image is “struggling” to upload for a while. Sometimes, the image is uploaded even if the error appears.

Most of the time it’s the image’s size (height and width) that causes this, so trying to upload big images could trigger the issue.

13 solutions for the HTTP error

Sometimes, the error can appear just once, for a particular image, but if it persists, try the solutions below.

Here’s how the HTTP error looks like when you try to upload an image:

Http error when uploading images to WordPress

In order to make a screenshot of the error, I’ve tried to upload a big sized image, and as you can see, it did trigger the error.

Now let’s get to our solutions:

1. Optimize the images by decreasing their size. Don’t add a 2000 x 1500 image, for example. If your post content area is 700px wide, don’t add an image larger than that.

2. Change the image’s extension from .png to .jpg, or vice versa, then upload it again.

3. If the problem appears after installing a plugin, deactivate it and try it again. Some plugins can trigger the error.

4. Increase your PHP memory by adding this code define('WP_MEMORY_LIMIT', '64M') into your wp-config.php file.

Increasing your PHP memory limit might not work if your host does not allow you to increase the PHP memory limit, especially on shared environments.

So, I suggest talking to your web host’s support and figure out a solution.

Read this guide if you need to know how to access and edit your WordPress files.

5. Add one of these codes in .htaccess:

<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off


# Exclude the file upload and WP CRON scripts from authentication
<FilesMatch "(async-upload\.php|wp-cron\.php|xmlrpc\.php)$">
Satisfy Any
Order allow,deny
Allow from all
Deny from none


AddType x-mapp-php5 .php (at the very top of your .htaccess file)

The codes can differ from server to server, so it’s best to contact your hosting support and ask them if it’s alright to add one of the codes, or ask them to do it for you.

6. Check with your hosting company to make sure that they are using PHP 5.2.4+ and they haven’t limited anything regarding uploads.

Once, when we were on HostGator (this is an affiliate link), someone from support was checking out an issue and discovered that we didn’t have the correct version of PHP. So it’s a good thing to “bug” your hosting support and ask them.

7 (Update). This fix was pointed out by a couple of our readers. We thank them for that!

Make sure you don’t have an apostrophe in the image file’s name (e.g. marys-wedding.png), because that will trigger the error as well.

8 (Update). If you’re using an image optimizer plugin, deactivate it and see if that solves the issue. If the plugin was the cause, try different configuration settings or contact the plugin developer.

We’ve experienced such an issue with the EWWW Image Optimizer plugin, which triggered the HTTP error when we were uploading PNG files. It was working fine with JPEG files, but PNGs are better in some cases, so we really wanted to fix the issue, which we did, with the help of the developer.

9 (Update). Backup your site and then switch to a WordPress default theme (e.g. Twenty Seventeen). If the problem is solved, then it’s a theme issue or a hosting related issue (see below why).

First, contact the theme developers to have a look. If they can’t seem to fix it, contact the hosting company.

Scenario – this happened to us recently. I received the HTTP error and nothing worked until I switched themes and the problem was solved. So it had something to do with the theme or the theme combined with something else.

I contacted the theme developers and they managed to partially fix the issue by installing a thumbnail regeneration plugin, but when I deactivated the plugin, the problem reappeared.

Since I don’t like having unnecessary plugins installed, especially for something that should work fine from the start, I didn’t let it go.

After checking things out with Chrome’s Developer Tools, I’ve spotted a server error, so I contacted the hosting company which changed the PHP version to 7, and that fixed the problem!

10 (Update). This was pointed out by Ellen in the comments section.

Check your file path, especially if you migrated your site.

Got to Settings -> Media and check the path at Store uploads in this folder under Uploading Files. It should be something like /home/username/public_html/wp-content/uploads.

Uploading files wordpress

11 (Update). This was pointed out by Vivek Kumar and Niche Apex in the comments. Thanks!

Switch to another browser, especially if you are using Chrome, which seems to trigger the HTTP error.

12 (Update). This was pointed out by BekBek in the comments. Thanks!

This fix already worked for some, and it might work for many others.

Try uploading the images only via Media -> Add New -> then Select files.

13 (Update). This was pointed out by pjmarket in the comments. Thanks!

If your image file name is in another language (e.g. Farsi, Mandarin, and so on), rename it and use English.

Even though WordPress allows you to upload file names using different languages, sometimes, it might cause an error.

If none of the above solutions work, then you should definitely contact your hosting support. If you have a good hosting company, I’m sure they will help you out and solve the issue for you.

You might also want to read:


It can be very annoying and frustrating getting that HTTP error when uploading images to WordPress, but I’m pretty sure that one of the above solutions will work for you.

Usually, the problem is the image itself, so start with the easy solutions first, like decreasing it to web-size or changing its extension.

Hope the post helped you out! Don’t forget to share!

You can also follow us on Twitter and subscribe to our YouTube channel.

If you want to start your own WordPress blog, or need a website for your business, our WordPress installation service is at your disposal!

WP Rocket - WordPress Caching Plugin
By |2018-10-05T05:55:20+00:00November 12th, 2014|Fixes, WordPress|160 Comments


  1. Single Dad Living November 28, 2014 at 6:13 PM - Reply

    I’ve been struggling with this for a week and I can’t fix it. My hosting company has been useless!

    I wonder if it’s because my site is running PHP 5.2.17

    • ThemeSkills November 28, 2014 at 8:24 PM - Reply


      We’re sorry to hear that! We stumble upon all kinds of issues all the time, so we know how frustrating it can be.

      Your site must run on PHP 5.2.4+. Isn’t your hosting company providing that version or higher?

    • Neil January 21, 2017 at 12:34 AM - Reply

      I tried loads of fixes listed on various websites, however the fix that worked for me was to add a line of code to the .htaccess file to modify the PHP version being used.

      The default our web hosting provider was using 5.5, but 5.6 and 7.0 can also be specified.

      Adding the following line of code to the .htaccess file cured the image upload issue for me on various sites.

      AddHandler application/x-httpd-php56 .php

      (Note the gap before .php should be left exactly as shown)

      For 7.0 it would be:
      AddHandler application/x-httpd-php70 .php

      Your web hosting provider should be able to advise you what versions of PHP they support.

  2. Arp Laszlo January 25, 2015 at 2:37 PM - Reply

    Your site is unusable on Chrome. If I try to scroll down to read, it quickly scrolls to the bottom of the page. If I try to scroll up, it zooms to the top. There’s no way to read the content.

    • ThemeSkills January 25, 2015 at 7:46 PM - Reply

      Thank you very much for letting us know! We really appreciate it!

      This is will be a tricky one. We’ve checked ourselves and also asked some other people to check things out, and it seems to be working fine.

      It may be one of those frustrating problems that occurs occasionally, or only to some users, so it will be very hard to spot and fix if it doesn’t happen on our end as well.

      The thing is that we did a lot of tweaking in order to improve the site’s speed, and we noticed that some plugins, like W3 Total Cache’s and Bj Lazy Load, caused some problems, but we thought we solved them. It’s clearly an issue caused by a plugin or a plugin’s setting.

      We’ll try our best to get to the bottom of this.

      Did you encounter this issue on the entire site?

      • Max January 28, 2015 at 11:30 PM - Reply

        I too am having trouble on your site while using Chrome. It is sitewide. I hope this helps!

    • Saviour December 3, 2016 at 9:43 PM - Reply

      That is funny.

  3. Amanda January 29, 2015 at 10:09 AM - Reply

    Hi there,

    Your site is most definitely NOT working properly on Chrome. It scrolls crazily and you can’t use the mouse. You have to use the up and down arrows to navigate. Have a few more people test it for you who aren’t in your office/country.

  4. ThemeSkills January 30, 2015 at 2:03 AM - Reply

    Thank you Max and Amanda for letting us know this! We really appreciate it!

    We’ve put other people to check it out and everything seemed fine. It’s one of those frustrating problems that only happen to some users, that’s why it’s so hard to spot and fix. We can’t check things out in order to see what’s causing this.

    Chrome is also a bit “difficult” as a browser. There’s always something that doesn’t work properly on Chrome. For example, some images don’t appear properly (or at all) when using the BJ Lazy Load plugin, so we had to delete it.

    It could be one of the minified files from W3 Total Cache which is causing this, but we aren’t able to see which one because it works fine for us.

    Our hosting company was also blocking some IPs from the CDN company, so we thought that could have been the issue…

    We’ll keep on working on the issue and fix it as soon as possible! Many thanks for the heads up!

  5. Amanda February 1, 2015 at 11:20 PM - Reply

    Received your email. I came back and checked, and yes the problem seems to be fixed. I am using Chrome and Windows 8, BTW, not a Mac. I tried my Mac at home over the weekend on your site, running Chrome and Firefox as the browsers and there were no issues.

    • ThemeSkills February 2, 2015 at 8:59 AM - Reply

      That’s awesome news!

      Thank you very much for your time and help! It was very kind of you.

      I’ll pass the new info to the theme’s support, so they can check things out.

  6. Coder April 18, 2015 at 10:17 AM - Reply

    For those that are using Hiawatha and face the same issue, apart of the changes in php.ini and read/write rights.

    Add this lines on your /etc/hiawatha/hiawatha.conf

    Binding {
    Port = 80
    MaxRequestSize = 1000000
    MaxUploadSize = 550
    Binding {
    Port = 443
    SSLcertFile = /etc/hiawatha/serverkey.pem
    MaxRequestSize = 1000000
    MaxUploadSize = 550

    • ThemeSkills April 21, 2015 at 10:23 PM - Reply

      Thanks for the great info!

  7. vp May 5, 2015 at 1:27 AM - Reply

    My pdf file name had an apostrophe in the file name. Removing it fixed this issue.

    • ThemeSkills May 5, 2015 at 7:51 PM - Reply

      That could cause issues as well! Thanks for the info!

  8. Carl Evangelista June 14, 2015 at 1:48 PM - Reply

    Its the apostrophe in the file name its that simple. Everyone is wasting there time with this problem and its that simple to fix it.

    • ThemeSkills June 17, 2015 at 7:10 PM - Reply

      Yes, that can trigger the error too, but it’s not the most common issue from what we’ve seen. Usually this happens because of the memory limit and file size.

      Recently, we’ve been getting the error again when uploading PNG files, and it’s caused by an image optimization plugin.

  9. Hunter September 8, 2015 at 9:04 PM - Reply

    Struggled with this as well. The solution was actually a simple one and I thought that perhaps you might want to add it to the solutions. Silly me, when I saved the image for web, I added an apostrophe (e.g. it’s-an-error) in the title. After removing the apostrophe (e.g. its-not-an-error), the problem was solved.

    • ThemeSkills September 11, 2015 at 12:10 PM - Reply

      Thanks for the info! We’ll add this to the solutions, since we are starting to see that’s pretty common too.

  10. Carthage September 22, 2015 at 10:33 PM - Reply

    I get this issue. regularly. While the http error does come up, the picture actually loads i.e. if I go to another page and then back to the image library, the image will be there.

    It happens on more than one of my site so I don’t think it is a problem with the specific site.

    In my case, I think it is due to the image optimizer that is comes with my theme – Thrive Themes. Maybe it takes a bit longer than expected to load so the error comes up.

    However, I did also experience this issue on a a few occassions before changing tho this theme so there must be more than one thing which can cause the issue.

    • ThemeSkills September 23, 2015 at 9:15 PM - Reply


      Yes, the picture does load in the media library. And an image optimizer feature can trigger the error, like we have experienced lately with the EWWW Image Optimizer plugin.

  11. Alex October 3, 2015 at 11:31 PM - Reply

    It was the optimization plugin… thank you so much!

    • ThemeSkills October 4, 2015 at 12:10 AM - Reply

      You’re most welcome! We’re glad that our article helped you out!

  12. Sander Stekelenburg October 7, 2015 at 4:23 PM - Reply

    Good info. Changing the .htaccess worked like a charm for me with WP 4.3.1

    Thanks for sharing!

    • ThemeSkills October 7, 2015 at 5:30 PM - Reply

      We’re happy that it worked for you!

  13. jeremiah November 23, 2015 at 1:24 AM - Reply

    hello.. pls i need your help,, for a while now i get to see this http error while an uploading mp3… pls is my memory full or whats wrong pls i need ur response urgently,, thanksYour Message :

    • ThemeSkills November 24, 2015 at 9:50 PM - Reply


      We replied to your email.

  14. MuchFun December 21, 2015 at 10:00 PM - Reply

    Hi there,

    I am facing the problem described in your screenshot, but only with some of my images. I have 25 images, smaller than 1MB each, and 5 of them are not being uploaded (not the 5 biggest ones …). 2 of them are portrait, 3 are landscape.

    Any ideas what could be the problem?
    Thanks in advance

    • ThemeSkills December 23, 2015 at 10:58 AM - Reply

      Hello! Did you go through all our fixes and they still don’t work?

  15. Amar December 29, 2015 at 11:59 AM - Reply

    Thanks ๐Ÿ™‚
    option 1 works for me thanks for sharing this article

    • ThemeSkills December 30, 2015 at 1:47 PM - Reply

      Hello! We’re glad that it works for you! Thank you for letting us know.

  16. James Koo February 6, 2016 at 6:37 PM - Reply

    Thanks! This really helps me!

    • ThemeSkills February 8, 2016 at 12:04 AM - Reply

      Hello! That’s great!

  17. George February 25, 2016 at 10:46 PM - Reply

    I used up (8) linked to the plugin and the problem was solved! Thanks admin for this article very helpful.

    • ThemeSkills February 29, 2016 at 5:45 PM - Reply


  18. Ronnie February 27, 2016 at 6:41 AM - Reply


    I am facing a big Issue on My blog. I have not be able to access WordPress dashboard after login, because it is showing HTTPS, but I have not done any changes to my site in last few days, it’s just I updated some bulk plugins.

    I just able to login using my username and password and that’s it, can’t go ahead. Please help me out. It’s urgent.

    Not been able to access dashboard from 24 hours now.

  19. Dinesh March 3, 2016 at 7:47 PM - Reply

    thankyou it’s working charm…..

    • ThemeSkills March 7, 2016 at 10:45 PM - Reply

      Awesome! ๐Ÿ˜€

  20. Jigyasa March 8, 2016 at 2:42 PM - Reply

    I am having same issue- exact ditto.

    What is do now is – I use my Mobile data to upload all images and then I access it from library on my fast wifi.
    I know this sounds lame, but I got no other solution for this problem.

    Plus No one is there to help – Godadday (who sold me wordpress) barely know anything about the faults and fixtures.
    And no wordpress team assistance ๐Ÿ™

    So thats a patch work we do here.

    • ThemeSkills March 9, 2016 at 4:22 PM - Reply

      Hello! Yeah, you won’t get much help from GoDaddy, we noticed that. It could be some sort of problem on their end, if everything else doesn’t work.

  21. Alisa March 14, 2016 at 11:28 PM - Reply

    I had no idea that apostrophes would screw things up! Now I now why I was having issues.

    • ThemeSkills March 15, 2016 at 9:50 PM - Reply

      No such issues from now on ๐Ÿ˜€

  22. Vishnu March 15, 2016 at 7:12 PM - Reply

    Thanks for this amazing stuff , it helps me a lot in understanding about http error but now shifted to https

    • ThemeSkills March 15, 2016 at 9:47 PM - Reply

      We’re glad you liked our post! Thank you!

  23. Chris March 22, 2016 at 7:10 AM - Reply

    This is the frustrating thing about WordPress blogs, theme developers, and plugin sites. The host is not the issue, your post here indicates nothing in the areas to review and troubleshoot that is a server side configuration yet you say:

    \”Hello! Yeah, you wonโ€™t get much help from GoDaddy, we noticed that. It could be some sort of problem on their end, if everything else doesnโ€™t work.\”

    Shared hosting providers cannot be expected to be experts on a constantly evolving open source platform, especially considering the sheer number of content management systems that exist. This is the equivalent of buying a Honda, adding 20 custom parts to it, then taking it to a Ford dealership to troubleshoot the check engine light. Ford sells cars, your own a car, they should be an expert on your car right? No. If it doesn’t work on the default WordPress theme, with no plugins enabled, contact your hosting company. To suggest otherwise is lazy and irresponsible development.

    • ThemeSkills March 23, 2016 at 2:55 PM - Reply


      Well, if a hosting company says it supports WordPress and has the proper infrastructure for it, but they end up having some sort of issue that doesn’t allow you to upload your images, then they should fix it.

      There were plenty of times when the issue was fixed by the hosting company, because there was something wrong on their end, which is not necessarily to blame, because bad things can always happen.

      If something’s wrong on the server’s side, then you can’t do anything, except contacting them to solve the issue, since you don’t have access to their servers, and even if you did, you might not know how to fix the issue.

  24. Prime Aque March 29, 2016 at 10:09 AM - Reply

    Hi. Thank you for sharing this. I have tested all the methods above, however, it does not work on my end so I look for other ones.

    I am able to fix the http error in uploading images to WordPress by installing a theme called Default to GD downloadable on GitHub.

  25. Alaa April 25, 2016 at 3:30 AM - Reply

    another solution worked for me .. upload the picture you want to facebook and download it back .. now upload it in wordpress .. tdaaa uploaded !!

    • ThemeSkills April 27, 2016 at 7:55 AM - Reply

      Wow, that’s a really strange fix :). Never would have thought of that. Maybe it was a coincidence? Anyway, we’re glad it works!

  26. BekBek April 27, 2016 at 1:05 AM - Reply

    Hey…. You can easily solve the problem by Going to Media , – Add New and Use the Select Files. and select the image and upload manually….

    That should solve the issue if you are not having any problem with your host configuration.

    So before tweaking any file or settings, You can try that….

    • ThemeSkills April 27, 2016 at 7:57 AM - Reply

      Hello! Thanks for pointing this out. It could work for some.

    • Jackson August 11, 2016 at 3:54 AM - Reply

      Hey BekBek,

      That worked like charm. This is no doubt the quickest fix (as long as you are not having issues on your host end) without installing a plugin or tweaking files on your on your site.

      Thanks BekBek

    • Laura July 10, 2018 at 7:40 AM - Reply

      Oh my gosh this one worked for me — after trawling through troubleshooting sites for hours and trying just about everything, this was the one that did it! Thank you!

  27. Raimund May 1, 2016 at 1:48 PM - Reply

    Re-Export with gimp solved this problem after i tried some fixing with editing the php.ini. I got some resized JPEG files to upload on our website from a mac user.
    Maybe theres some kind incompatible converting software in OSX or third party programs?

    • ThemeSkills May 3, 2016 at 8:28 PM - Reply

      Hmmm, don’t really think that some sort of incompatibility issue could cause this.

  28. wakil May 7, 2016 at 9:45 AM - Reply

    I changed my PHP from 5.6 to 7.0 and it works.
    Thanks for info

    • ThemeSkills May 9, 2016 at 3:39 PM - Reply

      That’s great!

  29. MYandroidBD May 29, 2016 at 11:31 AM - Reply

    informative article. Thank You.

    • ThemeSkills May 31, 2016 at 11:00 AM - Reply

      Glad you liked it!

  30. The Future Mrs. Vines June 11, 2016 at 7:40 PM - Reply

    This is a known issue in WordPress 4.5, but has to do with Imagick. Here’s the official thread for 4.5. https://wordpress.org/support/topic/read-this-first-wordpress-45-master-list. Here’s what fixed my issue: https://core.trac.wordpress.org/ticket/36534#comment:7 and here’s WordPress’s official patch. https://core.trac.wordpress.org/attachment/ticket/36534/36534.diff

    • ThemeSkills June 13, 2016 at 2:53 PM - Reply

      Hello! Yeah, some WordPress updates can bring different problems. Thanks for sharing the links!

  31. Sweekrith June 22, 2016 at 3:55 PM - Reply

    Hi Folks,

    I have been having this issue too for all my WordPress sites. Based on the discussion and troubleshooting with my hosting provider i have the steps they took to sort out this issue.

    Correcting the HTTP Upload Error

    Log into your cPanel dashboard.
    Using the file manager, navigate to your WordPress site’s root directory.
    Locate and open the .htaccess file for editing.
    Add the following line of code at the top of the file:
    Save the changes to the .htaccess file.

    • ThemeSkills June 23, 2016 at 9:52 AM - Reply

      Hello! Thank you for sharing this with us!

  32. cell phone July 24, 2016 at 9:10 AM - Reply

    That is working now by deactivating shareholic images sharing and seo images freindly plugins. Thanks themeskills

    • ThemeSkills July 25, 2016 at 6:38 PM - Reply

      Thanks for the tip!

  33. MakeOnlineShop August 9, 2016 at 2:56 AM - Reply

    Hello, and then if we still have the error ? What else can I try ? Thank you.

    • ThemeSkills August 16, 2016 at 7:09 PM - Reply

      Hello! Contact your hosting support and have them check it out on their end too. A lot of issues are caused by servers.

  34. Lajawab Khana August 12, 2016 at 10:27 PM - Reply

    After switching to different server getting HTTP error. Images are uploading but automatic default wordpress thumbnail generation not working. Any idea to fix this. Above methods not working.

    • ThemeSkills August 16, 2016 at 7:07 PM - Reply

      Hello! If this happened after you switched servers, and nothing in the list seems to fix it, then it’s probably server related, and you should contact the hosting support.

  35. Joelle August 30, 2016 at 11:20 PM - Reply

    I want to find you and give you a hug!! Number 5 solved my problems after months of http error and wasted time. And a lot of curse words. Thanks so much!!!

  36. DSR August 31, 2016 at 11:11 PM - Reply

    Tried all above tips and suggestions but still searching for solution ๐Ÿ™

    • ThemeSkills September 13, 2016 at 9:01 AM - Reply

      Hello! Sorry to hear that. Even tried contacting your hosting provider?

  37. Gskaug September 7, 2016 at 4:20 PM - Reply

    define(‘WP_MEMORY_LIMIT’, ’64M’) was a solution for my site ๐Ÿ™‚ Tx

    • ThemeSkills September 13, 2016 at 9:02 AM - Reply

      Glad it worked! ๐Ÿ˜€

  38. Alan September 9, 2016 at 5:29 AM - Reply

    Thanks that helps.

    • ThemeSkills September 13, 2016 at 9:02 AM - Reply


  39. Innoway September 27, 2016 at 6:06 PM - Reply

    I have made changes in the permission of httpdocs for “Application pool group” to “write” and it works, thanks.

  40. Aftab Hussain September 28, 2016 at 11:16 AM - Reply

    I had same problem but this wode woks for me:

    Satisfy Any
    Order allow,deny
    Allow from all
    Deny from none


  41. Tom October 8, 2016 at 8:04 AM - Reply

    It was the EWWW Image Optimizer for me – thanks for this post, it was helpful

    • ThemeSkills October 14, 2016 at 1:38 PM - Reply

      Glad it worked!

  42. Anh Tran October 14, 2016 at 12:52 PM - Reply

    This is a great post. I’ve been searching around for a good solution for my users. Thanks for sharing.

    • ThemeSkills October 14, 2016 at 1:39 PM - Reply

      Thank you for your appreciation!

  43. Numan October 17, 2016 at 11:23 AM - Reply

    Hi, it gave me realy trouble. Because of that i want to share my solution with all of you.
    In my case this happened because of WP Jetpack plugin, I realize it after disabled it.
    I suggest you try this ๐Ÿ™‚ It helped me in my case ๐Ÿ™‚

    • ThemeSkills October 18, 2016 at 12:54 PM - Reply

      Hello! Thanks for the solution! It doesn’t surprise me that Jetpack could cause an issue like this, to be honest.

  44. Sight October 20, 2016 at 4:08 PM - Reply

    This issue was solved by tech support for me by changing the name of my “php.ini” file to “php5.ini” Hmmmmm. That’s new for me. My client is using a cheap/reseller host, so maybe they have variation in their filenames. Who knows, but now my images upload fine.

  45. Reginald Sophomore October 21, 2016 at 7:25 AM - Reply

    Helpful analysis ! Just to add my thoughts , you are wanting a IRS W-2 , my colleague filled out and esigned a sample version here https://goo.gl/5xU1aW

  46. Reid October 21, 2016 at 11:37 PM - Reply

    I know this is super late to the game, but perhaps it will help someone else who comes across this post. If you\’re attempting to modify your wp-config.php file the code should be:

    define(\’WP_MEMORY_LIMIT\’, \’64M\’);

    Note the semicolon at the end. Without it, your site will likely throw an error.

    Thanks for the post. I hope this helps though.

  47. Paul November 4, 2016 at 10:34 PM - Reply

    step 1 and 2 are the major cause of this in all my experience, if you try it and it doesn’t work for you, try it again by decreasing the size, dimension or resolution of the image. It can be frustrating though …….lol

  48. Name : November 17, 2016 at 4:32 PM - Reply

    I had an issue too and found out that my share host was running php version 5.5.36. I had to add “AddHandler application/x-httpd-php56 .php” to the .htaccess file to get the server to run php 5.6

    I hope this helps

  49. Gareth December 1, 2016 at 4:46 PM - Reply

    The PHP update (which I changed within cPanel) worked perfectly. I was on PHP 5.2 and changed to 5.4.

    • ThemeSkills December 2, 2016 at 2:50 AM - Reply


  50. Sarah December 9, 2016 at 8:45 AM - Reply

    The tip to change from .jpeg to .png worked a treat, thank you!

    • ThemeSkills December 15, 2016 at 7:27 PM - Reply


  51. Thiyagesh December 15, 2016 at 10:08 AM - Reply


    We are experiencing this issue for .docx file uploads.
    Whenever an user tries to upload .docx file in our contact us page(we used contact form 7 plugin), they get HTTP error(502 Bad Gateway error), not only for that plugin, even for any type of plugin.

    We are so excited to receive a reply from your side.

    • ThemeSkills December 15, 2016 at 7:38 PM - Reply


      A 502 error usually means that the server killed the process because it was taking too long to complete. This can happen for a lot of reasons, and it can be quite tricky to find sometimes.

      The first thing I’d do is to rule out the hosting company and make sure the problem is not with their server (it usually is in situations like these :D), especially if you know you’re not on a quality hosting company, which doesn’t have infrastructure that can handle WordPress. If the server is not the issue, you need to check WordPress, the plugins and the theme, and for that I’d recommend someone who’s good at troubleshooting WordPress errors, like a developer or something.

  52. Rolf Service December 15, 2016 at 4:43 PM - Reply


    I had this issue in one of my installations.

    My solution was to change php to fast-cgi.


    • ThemeSkills December 15, 2016 at 7:27 PM - Reply

      Hello! Thanks for sharing!

  53. wallpaper January 8, 2017 at 6:40 AM - Reply

    This is a new issue in most of wordpress updates. Thanks for revealing.

  54. Eileen Anderson January 12, 2017 at 3:05 PM - Reply

    I get the message if I have left a post open on my computer, say, overnight. It’s the same situation in which, if I were to edit, then update the post, I get the message, “Are you sure you want to do this?” In the case of the image, it never tells me it’s a refresh problem. But after I do refresh, I can upload the same image with no problem.

  55. Swathi Reddy January 20, 2017 at 7:41 PM - Reply

    Very Simple we can solve this HTTP Error. If you uploading the images from the desktop just move them to any drive and try uploading and you can do it easily.

  56. Chris Duke January 24, 2017 at 9:28 AM - Reply

    I’m at a complete loss right now. I’ve tried everything suggested here, and other places that I’ve looked, and still nothing. I moved 3 WP installations to a new host a few months back and two of my WP installations work fine. The third is giving me the dreaded HTTP error. I’ve tried everything here, including removing ALL plugins. I’ve also tried returning my .htaccess to a bare-bones one, as well as wp-config.php. Nothing seems to work. I’ve tried many different files too (all small like 100kb) and in different formats such as .jpg .jpeg and .png. The same file I’m testing with I can quickly load into the other 2 WP installations, so I know it’s not the file. So…

    – It’s not the image file
    – It’s not the .htaccess
    – It’s not the wp-config.php
    – It’s not the plugins
    – 2 other WP installs work fine with the test images
    – Everything else works fine with the site but image uploads
    – Hosting company support has no clue
    – Running PHP Version 5.4.16
    – Memory limit 128MB

    Any ideas? TIA…

    • ThemeSkills January 26, 2017 at 4:19 PM - Reply


      I’m sorry that this is happening to you. I know how frustrating it can be, I had my share…

      From what I see, it can come down to this:

      – The theme. Switch the theme with a default one from WordPress, and then check again.

      – The theme and plugins. If just switching the theme doesn’t do it, then switch the theme and disable all the plugins; check again. Some plugins may be incompatible with the theme(s).

      – The hosting. Since you’re saying that they don’t have any idea, I’m assuming you’re on Godaddy? :). They usually don’t know what’s going on. You need to check with them again, especially regarding the PHP memory. It happened to us once (not on GoDaddy), where we would increase the PHP memory, the hosting support would do it too, but after a while they realized that it won’t take effect if we are on a shared or cloud environment. You could download a plugin like WP-ServerInfo or Server Status to check the statistics of your server.

      – Some themes also require a higher version of PHP, so that 5.4.16 may cause some trouble. You should ask the devs.

      That’s all I can think of right know… Let us know what happens. Oh, and don’t forget to make a full backup before switching the theme and stuff.

  57. Chris Duke January 26, 2017 at 7:01 PM - Reply

    I actually figured it out! Because I moved web hosts, I had to go into the options table and remove the value for the upload_path field. Once I did that, everything was fixed.

    • ThemeSkills February 3, 2017 at 12:04 AM - Reply

      Oh yeah, that makes sense :D. I’m glad that you figured it out!

  58. Liene G February 7, 2017 at 2:31 PM - Reply

    Thank you. In my case plugin was what caused this error.

  59. Przemo February 9, 2017 at 8:35 AM - Reply

    Thanks a lot!
    Now working great ๐Ÿ™‚

  60. Lijo February 21, 2017 at 7:49 AM - Reply

    I think it may cause because of deactivated themes or hacked themes

    • patriciahacks March 7, 2017 at 1:18 PM - Reply

      No this is not because of hacked theme, look here the full documentation about the solution of http error while image upload in WordPress http://khojdo.com/http-error-while-image-upload-in-wordpress-version-4-7-2-step-by-step-tutorial-solved/

  61. Paul March 22, 2017 at 10:41 PM - Reply

    In my case my proxy server was causing the problem.

    • Dan Chang October 5, 2018 at 11:20 PM - Reply

      What was happening with your proxy? I’m facing the same issue and I think its because of the proxy.

  62. Havard March 27, 2017 at 9:27 AM - Reply

    I had this issue for a long time now. I could only upload small files. Everything else gave me an HTTP error. I finally got it FIXED.

    My hosting provider eventually, after a lot of time trying to figure it out, found that the issue was in the Apache configuration file and that the “LimitRequestBody” was set to 200kb. After adjusting that, everything was fine again!

    So, if nothing else works, have your hosting provider look at that file and see if it is set too low.

    • ThemeSkills March 27, 2017 at 4:23 PM - Reply

      Thanks for the tip! Recently, we experienced something similar on a project. We started receiving the HTTP error right from the beginning. After trying everything that we knew, the hosting company finally fixed it by switching our PHP version to 7.

  63. Sol March 28, 2017 at 12:09 PM - Reply

    So I was having this problem as well, and that got me here.

    I had a plugin “WP Smush” installed. Was the first I deactivated, and viola! All images are uploading…. I think you should add “all image compressing/editing plugins should be deactivated first.


  64. Bel March 31, 2017 at 1:06 PM - Reply

    Ahhhhhhh thankyou so much! It was a sneaky apostrophe that was causing it!

  65. Can April 1, 2017 at 12:16 AM - Reply

    AddType x-mapp-php5 .php works perfectly. Thanks!

  66. Paul Swarthout April 4, 2017 at 12:52 AM - Reply

    “HTTP Error” is like so many other errors: a totally useless error message that tells you nothing about the problem encountered. However, I’ve found that the problem is most often a timeout condition of the upload process. There may be dozens of ways to work around the problem and resolve it. But ultimately, I usually just turn off the script timeout.

    You need to edit 3 files in your WordPress installation. Add the line: “set_time_limit(0);” without the quotes somewhere near the top of each of the following 3 files. Don’t forget the semicolon. Make sure that you don’t accidentally put it inside a comment block.

    Modify: /wp-admin/upload.php
    Modify: /wp-includes/wp-db.php
    Modify: /wp-includes/class-wp-image-editor-gd.php

    And then — and this is the hard part — remember to reapply these changes every time you upgrade wordpress. Setting the time limit to anything other than zero, sets a timeout to that number of seconds. It’s probably safest to give it some value other than zero (which means no time limit), but I just give it zero and if it runs too long, I can close the browser.

    • Paul Swarthout April 4, 2017 at 12:53 AM - Reply

      …..where I said “without the quotes” …. also without the added backslashes….

      • ThemeSkills April 10, 2017 at 8:08 AM - Reply

        Thanks for your input! The backslashes are caused by a plugin conflict, which we are still working on. I removed them from your comment.

  67. Wojciech April 28, 2017 at 9:27 PM - Reply

    Helped me a lot, thanks

  68. Ellen May 6, 2017 at 8:10 PM - Reply

    I have tried the FTP access suggestions, adding code to .htaccess, and nothing worked for me. I found a super old-looking website that suggested making sure the file path was correct. And that’s what my issue was! I cloned this site to create a sister site (for my client’s sister company), and I assume something happened there. The pathway for all the media was linking to the sister site on the main site. UGH.

    Here’s the info:

    Incorrect Pathways

    Login to your wp-admin
    Click on Settings
    Choose the Media option from the left menu.
    The path should display wp-content/uploads. If not, correct the path.

    Hopefully this helps someone!

    • ThemeSkills May 12, 2017 at 6:13 PM - Reply

      Thanks for pointing this out! I’ll add it as a fix.

  69. Nick Lord May 9, 2017 at 4:27 AM - Reply

    I had the http error problem….SO annoying. I just deactivated the JetPack plugin. It’s pretty useless anyway, with so many better plugins you can use.

    • ThemeSkills May 12, 2017 at 6:12 PM - Reply

      Yeah, the Jetpack plugin can cause a lot of issues in a lot of different places. We used it once in our WordPress beginnings and then stopped using it.

  70. squads ID May 11, 2017 at 8:09 PM - Reply

    hellow, why this ist not work for me, iam using wordpress 4.7.4

    i have already increase memory limit, put thats code on .htaccess and my problem to upload image on wordpress is not sucess..

    any one have solutions for wordpress 4.7.4 ?

    • ThemeSkills May 12, 2017 at 6:10 PM - Reply

      Backup your site and then switch your current theme with a default one from WordPress (e.g. Twenty Seventeen). See if the problem persists.

  71. Nathan May 12, 2017 at 2:29 AM - Reply

    The apostrophe worked for me! Couldn’t believe it!

  72. yuda June 26, 2017 at 2:20 PM - Reply

    A solution that worked for me and many others, was somehow mentioned above, but here’s an easier way to implement it:

    Apparently there’s a long standing open bug in WP, related to the thumbnails creation library, which was changed in v4.5 to a more “efficient” lib – causing all sorts of weird problems that no one was able to fix since.

    This support thread mentioned a solution, and indeed it worked for me and many others: get back to using the old thumbnails lib.

    This can be achieved by installing the plugin from here:

    or by simply adding the code in the plugin to the theme’s (and preferably the child-theme’s) functions.php file.

    Hope this will help others


  73. Zahidul Islam July 6, 2017 at 7:21 PM - Reply

    You have provided very nice information. It really helped me. I personally appreciate your article on the topic “solutions for the HTTP error”.

  74. Start a blog July 17, 2017 at 12:40 AM - Reply

    I used wp smuch and it happened to me as well. So took measures that are mentioned in your article and the problem is solved now

  75. Jay July 29, 2017 at 4:12 PM - Reply

    Thanks, I had an apostrophe in a PDF title. very useful article

  76. Adrian Segar July 30, 2017 at 4:00 PM - Reply

    If you are tired of trying all the “solutions” suggested around the internet to this infuriating problem, here is a foolproof method to get your images, videos, or other accepted file types into the WordPress Media Library:


  77. Stage Play August 22, 2017 at 11:37 PM - Reply

    I tried many ways but i was unable to fix this problem
    But finally installed WP-optimize plugin By David Anderson, Ruhani Rabin, Team Updraft and it works successfully.

  78. Vivek Kumar August 30, 2017 at 7:13 AM - Reply

    The same problem i was facing in chrome browser, but in Mozilla everything was fine..

  79. kusuma September 8, 2017 at 4:23 AM - Reply

    someone can help me? i have done 10 ways from above.. but it’s still not working.. what should i do? install back my wordpress i think ๐Ÿ™

    • ThemeSkills September 8, 2017 at 10:22 AM - Reply

      Have you contacted your hosting company?

  80. Ysmay September 16, 2017 at 11:32 PM - Reply

    This problem comes and goes for me. None of these solutions have worked. What did work was simply emptying the cache. I’m using the Varnish Cache plugin, and clicking “Empty Cache” resolved the error. I hope this helps someone. ๐Ÿ™‚

  81. Kobus October 22, 2017 at 10:13 AM - Reply

    Our problem was that our load balancer ran out of hard disk space. Be sure to setup a log rotation that deletes the oldest logs after a period.

  82. pratik October 31, 2017 at 12:27 PM - Reply

    I have tried this and this really helped

  83. Colin Crawford December 18, 2017 at 5:52 PM - Reply

    I had the same problem and it turned out to be a plugin so I disabled it and the image or photo uploaded without the error.

    The Plugin was Image Optimizer WD. If that’s going to prevent me from uploading other media files then I’ll have to find an alternative.

    Thank you for you help as it solved the problem.


  84. Stars site December 28, 2017 at 10:26 AM - Reply

    This is so helpful for me.thank you

  85. Shea January 18, 2018 at 8:49 PM - Reply

    Thank you for all the attempts – unfortunately none of them worked for me. However I finally found the fix that nailed it perfectly. Adding this line to the very top of the .htaccess file:


    good luck to everyone else!

  86. ุณูƒุณ ู…ุชุฑุฌู… March 1, 2018 at 10:08 PM - Reply

    Thank you Max and Amanda for letting us know this! We really appreciate it!

  87. Satya March 4, 2018 at 3:02 AM - Reply

    Hi, I’m Still facing the same issue, I’ve even minimized the size of the image or the resolution even I’ve followed your rules as well.

    Can you tell me what should I do?

    • ThemeSkills March 4, 2018 at 12:54 PM - Reply

      Hello! Well, if you did try everything pointed out in the article, especially deactivating all the plugins and switching to a default WordPress theme, then it means that it’s most likely a hosting problem, since you ruled out the theme and plugins. So I recommend contacting them, tell them what you’ve done so far, and kindly ask them for assistance.

  88. Malcolm Ansell March 19, 2018 at 1:23 PM - Reply

    You Beauty – that suggestion of 7) Update – donโ€™t have an apostrophe in the image fileโ€™s name! was absolutely spot on!
    Fantastic – after uploading many photos of only 400Kb or there abouts, this WORKED!

    A Huge thanks you to the contributors.

  89. R March 26, 2018 at 1:49 PM - Reply

    idk if anyone’s tried switching browsers but after failing solidly for one hour working on Opera, I opened my blog up on Brave and the original pic uploaded immediately.

  90. Niche Apex April 1, 2018 at 7:31 AM - Reply

    Great article,

    You had several other things to try that I did not find anywhere else. I tried everything I found here in your nice article as well as everything else that I could fine elsewhere and nothing worked for me.

    Finally out of curiosity I decided to try uploading from another web browser and that did the trick. I was using Google Chrome and it was not letting me upload but after I switched to Firefox everything worked perfectly.

    Keep up with the helpful articles. ๐Ÿ™‚

    • ThemeSkills April 1, 2018 at 1:33 PM - Reply

      Heya! Thanks for contributing! I think someone else has pointed out that before as well. Since it seems to be a valid fix, I’ll update the article and add it :D. Thanks again for sharing this with us!

  91. John F May 6, 2018 at 2:43 AM - Reply

    This article got me working. Thanks… I de-activated all of my plugins, and it worked… As I started looking at them, I noticed one that you had in your list, EWWW Image Optimizer. It was not my culprit, I then noticed one called Imsanity. The description was “Imsanity stops insanely huge image uploads” That was the big culprit for me. Not even sure how it got installed in the first place. It’s deactivated now and life is good again.

  92. zul May 14, 2018 at 2:59 PM - Reply

    wait whatt..?? just solve my problem by rename it to a simple filename :D, from blablabla blalala.jpg to logo.png ^_^ ..

  93. Rohit June 5, 2018 at 7:10 AM - Reply

    Thanks worked for me, Just added it to WP .htaccess file for my website http://www.rohitpoint.com

    SecFilterEngine Off
    SecFilterScanPOST Off

  94. Tech Info World August 4, 2018 at 10:04 AM - Reply

    I tried everything but not working to solve the pdf upload error, after 50% pdf upload it automatically goes to HTTP error, how to solve it?

    • ThemeSkills August 7, 2018 at 3:37 AM - Reply

      Hello! Is it only happening with .pdf files? Have you tried using another.pdf file? Use a very small one and see if it works.

      Since you said that you tried everything pointed out in the post, also try deactivating all your plugins and see if that solves the issue (create a backup first). If it does, activate them one by one until you find the culprit. Also, check your error log in your control panel (usually cPanel) because it might point out the issue. As a final solution, talk to your web host.

  95. jOt August 28, 2018 at 10:47 PM - Reply

    Thought I’d chime in since none of the other tips worked for me but I figured it out: refresh your page.

    Basically, I opened a “new post” page then left for the evening. When I returned in the morning, I wrote my post but got the HTTP error when I tried to add an image to my post.

    My login hadn’t timed out overnight, but obviously something had, because when I clicked “save draft,” I also received a WordPress error. However, the draft had autosaved, and when I opened it back up, images uploaded just fine.

  96. prjmarket September 5, 2018 at 9:24 PM - Reply

    Another solution is not using file with other languages name. for example if the file name is in Farsi change it to English before upload

    • ThemeSkills September 5, 2018 at 10:03 PM - Reply

      Thanks for pointing it out! I’ve added it as a potential fix in the post.

  97. Carsten October 3, 2018 at 2:11 PM - Reply

    Well, i don’t understand why WordPress does not do anything about this problem.

    I just got it and searched around. It’s a problem that has been for years now.

    It seams that the core problem is with WordPress. I don’t know why some of the other solutions will work for some. But this is what works if everything else fails:

    function ms_image_editor_default_to_gd( $editors ) {
    $gd_editor = 'WP_Image_Editor_GD';
    $editors = array_diff( $editors, array( $gd_editor ) );
    array_unshift( $editors, $gd_editor );
    return $editors;
    add_filter( 'wp_image_editors', 'ms_image_editor_default_to_gd' );

    And i don’t know why the image size should be a problem at all. There are so many photographers that uses WordPress. But they must all use some theme that adds this function(or some other) to get rid of the problem.

    All the best

    • ThemeSkills October 3, 2018 at 9:17 PM - Reply

      Thanks for your input!

      Don’t know if WordPress is really the culprit. Usually, from my experience, the problem is caused by the file, the server, the theme, a plugin, or a combination of those. The file sizes usually don’t matter for WordPress, but in some cases, depending on the website’s setup, it might cause an error.

  98. Danny October 21, 2018 at 12:03 AM - Reply

    Hmmm, you taught me something new today. Thanks!

Leave A Comment


- Get guides and offers right into your inbox -

The type of emails that you would like to receive (multiple selection allowed):

You can unsubscribe at any time by clicking the link in the footer of the emails. For more information, please check the privacy policy.

I use MailChimp as my emailing service. By subscribing, you understand that your email and preferences will be transferred to MailChimp. Learn more about MailChimp's privacy practices here.