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 to redirect user from none www http to www https ?

Scenario: You want to force all users/client to access your website using https instead of http....

Files fail FTP transfer

When uploading many files at once (a CMS, for example), it is not uncommon for a few of the files...

Why is SEO important?

SEO (Search Engine Optimization) enables your website to be more accessible by the search...

How to register or buy hosting?

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

What is ID Protection?

What is ID Protection? When a domain name is registered, some information (such as...