UPLOAD ERROR: 406
Permalink 1 user found helpful
Hello everybody!
Can please someone tell me what causes the upload error 406 when using the multiple files upload, and how to solve this problem?
This error occurs (online) with a new installation of the latest C5 version with and without sample data.
Thanks for any help!
Can please someone tell me what causes the upload error 406 when using the multiple files upload, and how to solve this problem?
This error occurs (online) with a new installation of the latest C5 version with and without sample data.
Thanks for any help!
Do you see anything in your Apache error logs? You may also want to check permissions on the /files directory.
The error log says:
mod_security: Access denied with code 406. Error processing request body: Multipart: final boundary missing [severity "EMERGENCY"] [hostname "my host name"] [uri "/index.php/tools/required/files/importers/multiple"]
And the solution was:
the host uses Apache and FastCGI
the .htaccess file:
SecFilterEngine Off
AddHandler php5-fastcgi .php .php5
mod_security: Access denied with code 406. Error processing request body: Multipart: final boundary missing [severity "EMERGENCY"] [hostname "my host name"] [uri "/index.php/tools/required/files/importers/multiple"]
And the solution was:
the host uses Apache and FastCGI
the .htaccess file:
SecFilterEngine Off
AddHandler php5-fastcgi .php .php5
Excellent, you figured it out. It was a mod_security issue. A few people have had sucess with this added to there root .htaccess file:
Also make sure that your .htaccess file is readable (chmod 644 should be addequate).
<IfModule mod_security.c> SecFilterEngine Off SecFilterScanPOST Off </IfModule>
Also make sure that your .htaccess file is readable (chmod 644 should be addequate).