There are many reasons for this error,
1. Permission settings
For server security settings, modify the httpd. conf file of the server and delete the mod_security section.
2. Restrictions on image Upload
3. Image processing plug-in, because you have not installed the image processing library or enabled the relevant PHP functions
3.1.PHP image processing library is not installed or set incorrectly (GD, ImageMagick, etc. are not installed .)
Install the GD Library
Debian
Apt-get install php5-gd
Yum install php-gd
Suse
Yast-I php5_gd
After the installation is complete, restart the PHP or web server.
Service apache2 restart
4. functions. php functions
5. Add a line to the. htaccess file:
Log on to the host control panel and find the. htaccess file. Add two lines of code:
<Files async-upload.php>
SecFilterEngine Off
SecFilterScanPOST Off
</Files>
There are many problems. Here we will not introduce them one by one.
My problem is very simple. It belongs to the third category in the list. Here I install the DX-Watermark Image Auto Watermark plug-in, so I cannot upload images normally. the problem is resolved in 3.1. after installation, restart nginx or apache to upload images and process images automatically.