How to Fix HTTP Error When Uploading Images to WordPress

Mar 21, 2016

Have you ever had a trouble uploading images to the WordPress media? Sometimes when you try to upload images to your WordPress site, you might get the ‘HTTP Error’. But what does this error actually means and how can you fix it?

Usually if you get an HTTP Error while uploading media to your website, most of the time that HTTP Error is 415 Unsupported Media Type which actually means that you’re trying to upload files with media format that your server doesn’t support. In WordPress however, you might get this error for several different reasons that probably have nothing to do with the media format. For example, you might get it just by trying to upload a really big images.

How to Fix HTTP Error When Uploading Images to WordPress

Fix HTTP Error in WordPress – Don’t add ‘ to the filename

Yes, we admit, we’re guilty of this. Even though it sound like an thing that everybody would notice, we needed 10 minutes to figure out what was wrong with the image. So if you get an HTTP Error while uploading images to WordPress, first and foremost check the filename of your image. If it has some funny characters like ‘ or something similar, remove them and try uploading your image again. For example if your image name is ‘mom’s-delicious-recipe.png’ change it to ‘moms-delicious-recipe.png’ or something like that.

Also, sometimes the image extension might be a bit problematic, so try to change it as well. For example if your image is .png, change it to .jpg etc.

Fix HTTP Error in WordPress – Descrease the image size

WordPress sometimes does this thing where it doesn’t allow you to upload a big images, like really big (something like 2000×3000 px). One way to solve this is basically to decrease your image size. Use your favorite image manipulation program like Photoshop or GIMP and scale your image to more appropriate size. Usually a rule of thumb is that your photo should be as large (or smaller) as your content area. So if you have a content area of 710px, make the image maximum 710px wide (or smaller).

Fix HTTP Error in WordPress – Deactivate some plugins

Sometimes, some plugins might interfere with your other WordPress files and cause some trouble. So if you noticed that the HTTP Error happened after you’ve installed and activated a particular plugin, deactivate it and see if that solves the issue. Also, if you’re using some plugins that are intended to optimize your images, deactivate them and see if you’re able to upload your images. If a particular plugin was causing the problem, contact the plugin developer to fix the issue if he can or try using similar plugin.

Fix HTTP Error in WordPress – Using .htaccess

If the above mentioned methods doesn’t help you, you can try editing your .htaccess file. This might help you to fix HTTP Error when uploading images to WordPress. To do this, open your .htaccess file (or create a .htaccess file if you don’t have one) and add these lines:

SecFilterEngine Off
SecFilterScanPOST Off

Another thing that you can slo do in your .htaccess file is to add this line on top of your file:

AddType x-mapp-php5 .php

Fix HTTP Error in WordPress – Check your server

If nothing else works, you should contact your hosting company and ask them if they’re using the latest version of PHP (usually 5.2+). If not you can ask them if it’s possible to update it. Another thing that you can do is to increase the PHP memory. To do this, open your wp-config.php file and add this line: define(‘WP_MEMORY_LIMIT’, ’64M’). If this doesn’t work, contact your hosting provider and ask them if they can increase the PHP memory.

If absolutely nothing works for you, try to contact the support of your hosting provider and ask them to help you.

8 Comments. Leave new

Great, thanks for sharing this post.Really looking forward to read more. Much obliged.


Thanks again for the article.Much thanks again. Really Great.


Howdy I am so thrilled I found your website, I really found you by error, while I was searching for something else, Anyhow I am here now and would just like to say many thanks for a remarkable post and a all round interesting blog (I also love the theme/design), I don’t have time to go through it all at the moment but I have bookmarked it, so when I have time I will be back to read much more, Please do keep up the superb job.


Thank you, I’ve just been searching for info approximately this subject for a
while and yours is the best I have discovered till now.

However, what about the bottom line? Are you certain concerning the


There is definately a great deal to know about this subject.
I like all of the points you have made.


Informative article, just what I wanted to find.


Enjoyed every bit of your blog post.Really looking forward to read more. Really Great.


Im obliged for the article. Will read on…


Leave a Reply

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