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!

1 Attachment

 
nteaviation replied on at Permalink Reply
nteaviation
Do you see anything in your Apache error logs? You may also want to check permissions on the /files directory.
grorog replied on at Permalink Reply
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
nteaviation replied on at Permalink Reply
nteaviation
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:
<IfModule mod_security.c>
SecFilterEngine Off
   SecFilterScanPOST Off
</IfModule>


Also make sure that your .htaccess file is readable (chmod 644 should be addequate).