原来是fastcgi模式下的设置问题,需要在配置文件.htaccess或者直接在apache的配置文件http.conf 中指明,如下:
查看官方说明有这么一句:
Default: FcgidMaxRequestLen 131072
131072正好是128K。
<IfModule mod_fcgid.c> AddHandler fcgid-script .fcgi FcgidConnectTimeout 20 # to get around upload errors when uploading images increase the MaxRequestLen size to 15MB FcgidMaxRequestLen 15728640 </IfModule>
本文详细介绍了在fastcgi模式下解决上传图片时遇到的错误,通过调整MaxRequestLen大小到15MB,避免了上传过程中的错误。文章提供了具体的配置代码示例,包括在.htaccess或http.conf文件中如何正确设置。
1029

被折叠的 条评论
为什么被折叠?



