Guide On How To Fix Http Image Error While Uploading Images On WebSite

HTTP Error!

Have you ever seen this popping up on your Add Media screen while uploading a image to your WordPress Website? Yes, I have faced the same too.

In fact, the HTTP Error While Uploading an Image to a WordPress is really a headache. If you don’t know how to figure it out, then you are in a real trouble.

But, nothing to worry about. We have the solution for you. See the below options by using which you can Fix Http Error While Uploading Image To WordPress Site.

Why Does HTTP error while uploading image in WordPress Occurs?

The HTTP image upload error is related to uploading images to a WordPress site through the WordPress dashboard. The associated error message “HTTP error.” on its own can be somewhat difficult to understand. In this article, we’ll discuss ways to solve this problem.

1. Reduce the size of the image

If the image has many pixels, reducing its size may resolve the upload error. The pixel size required will vary depending on several variables, so start by reducing the file size to something small like 300×200 and see if that resolves the issue. If it does, experiment with different pixel counts to find a size that is of an acceptable quality and does not return an upload error.

Windows users can use the Paint application to resize the image that needs to be uploaded:

  • Open the image.
  • Select Resize.
  • Click the Pixels radio button.
  • Change the values in the Horizontal and Vertical fields.
  • Click OK to save the image.

Mac users can reduce the number of pixels in the image to be uploaded by opening the file in Preview and selecting Tools > Adjust Size.

2. Verify and increase PHP memory limit

Increase the memory allocated in the wp-config.php, .htaccess, or php.ini file to resolve HTTP image upload errors. Be sure to make note of the original settings in each file and backup WordPress before making any of the changes described below.

Note that these edits will only work if the additional memory is available on the web server and the edits should only be made by administrators who are knowledgeable in the field. If you are uncomfortable making any of these edits, please contact someone who is learned in these techniques.

Start by trying to edit the wp-config.php setting, if that does not solve the issue, try editing the .htaccess value, and if that does not fix the problem, try editing the php.ini value.

Below are examples of the edits required to provide 512MB of memory in each file. The actual amount of memory required will change depending on the requirement of the application


Edit the value defined for ‘WP_MEMORY_LIMIT’

define (‘WP_MEMORY_LIMIT’, ‘512M’);


Edit the value defined for php_value memory_limit

php_value memory_limit 512M


Edit the value defined for memory_limit

memory_limit = 512M

Disable mod_security

mod_security is an open source firewall that could be creating an HTTP image uploading error. mod_security can be disabled by adding the code below to the .htaccess file on the WordPress server.

<IfModule mod_security.c>

SecFilterEngine Off

SecFilterScanPOST Off


A cPanel user can disable mod_security under the security settings by disabling it for the domains required to fix the error.

3. Use the “Add from Server” plugin

The Add from Server plugin is an open-source plugin created by Dion Hulse and is designed to allow users to work around these sorts of upload errors. Files are uploaded to the webserver and then imported into WordPress sites. This plugin has generally positive reviews and boasts over 80,000 active users according to WordPress.

4. Disable conflicting plugins

A conflicting plugin could be creating an HTTP image uploading error.

If the errors only began after a specific plugin was installed, try disabling that plugin and see if the upload error persists.

Otherwise, the fastest way to determine if a plugin is creating an issue is to disable all plugins and see if the error still comes up. If this resolves the issue, proceed with enabling them one by one to see which plugin is creating the error, and then disable the plugin responsible.

Once you have identified the conflicting plugin, there are a few steps you can take to try and resolve the issue, the easiest fix is uninstalling and reinstalling the plugin. If that doesn’t work, try contacting the plugin’s developer or support team as they may be able to help you resolve the conflict quicker than you could troubleshoot the problem yourself. If the plugin’s support team can’t help you fix the problem, uninstall the plugin and install an alternate one that offers similar functionality without creating the upload error.


Well, we gave you our two cents on how to fix the Http Error While Uploading Image To WordPress site. It is the time when you should implement the methods and fix that error. We will be happy to assist you if you are facing any kind of trouble while doing these. Feel free to share your thoughts via comments in below.

Start typing and press Enter to search