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

How can I change my default PHP timezone?

Issue: Why my application keep showing UTC time? this has cause my application not to log the...

Page says function not found, but the page exists

If your web application uses a function found in a particular file, but the application says that...

Common SEO Tips and Tricks

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

How do I password protect a directory?

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

What does Network Tools do?

Network Tools enables you to query a domain and retreieve relevant information about that domain....