切换到宽版
  • 242阅读
  • 0回复

解决phpwind论坛附件上传的问题 HTTP error 412 [复制链接]

上一主题 下一主题
 

只看楼主 倒序阅读 使用道具 0楼 发表于: 2011-11-02
是主机安全设置的问题,解决方案如下:

The Precondition Failed error (code 412) is returned when a mod_security trigger is invoked. You can try creating an .htaccess file in your web root and adding the following lines in it:


SetEnvIfNoCase Content-Type \
"^multipart/form-data;" "MODSEC_NOPOSTBUFFERING=Do not buffer file uploads"



If the above code does not help, you can try these lines in the .htaccess file to completely disable mod_security:


<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>



快速回复
限100 字节
 
上一个 下一个