Failed to upload image or file to wordpress

Issue:

There will be possibilities where you will not be able to upload any images or files to your wordpress site which are hosted in our server. Below are sample of issue that you might be facing.



Uploading a new image to the server using wordpress media library gives HTTP error.

Reason:

In most cases this issue will happened when ModSecurity is enabled. ModSecurity provide a mechanisme for apache web server to protect websites from known website attacks or hacking activity.

Solution:

Please login to your cPanel account and temporary disabled ModSecurity for your respective domain. You may follow How to Enable or Disable ModSecurity guide.


Notes:

Even though ModSecurity does not provide 100% web protection. We have seen enabling ModSecurity has able to help our customers to protect their websites from web hacking or web attacks. We do suggest for customer to re-enabled ModSecurity after they have made changes to their worpress website.

Was this answer helpful?

Also Read

What is hotlink protection?

Hotlink protection is disabling external use of your resources. For instance, if your website has...

My website is running slow

If you are using a forum or content management system, make sure that caching is enabled. Caching...

How do I password protect a directory?

Login to cPanel. Locate and click on the "Directory Privacy" icon under the "Files" category....

Installation error cause by PHP disable functions

Issue:Receive errors when trying to install new CMS(Content Management Systems) which saying that...

Common SEO Tips and Tricks

Include a title tag on all of your pages. Include a meta description tag on your homepage...