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 PHP version?

Issue: I cannot access my website. It seesm like there function that i used is not available in...

How to register or buy hosting?

1)      Login into our website, myduniahosting.com. Click on “LOGIN”. 2)      Then click on...

How to use PostgreSQL by using cPanel

PostgreSQL is an open source Relational Database Management System(RDBMS). First, Enter the...

How to convert dynamic URL to static URL

in order to convert dynamic url to static url, you'll need mod_rewrite module and .htaccess file...

PHP failed to include file: File Not Found

The PHP include() File Not Found error will occur when a .php file attempts to include another...