关于附件图片上传到100%不显示,一直显示100%,的部分解决办法

kenw2004
kenw2004 This guy is lazy,Introduction has not been set

3 People liked this article · 3766 views

遇到上传图片附件到100%,然后一直转圈圈,不能最终完成的问题,一直显示100%   (首先需要排除:根目录下 cache tmp uploads有没有写权限的问题,这三个目录要有写入权限,如果已经是777权限了,还是这样,请接着往下看。)   案例一:在iis + php5.6上出现 解决办法,换成了 php 5.3 解决    案例二:在nginx + php5.6上出现 解决办法,在http段增加      client_max_body_size 8m;    #允许客户端请求的最大单文件字节数     client_body_buffer_size 2m;  #缓冲区代理缓冲用户端请求的最大字节 原因大概是上传图片大于2kb时,缓冲区不够导致一直不能完成。   其它可能导致此问题的原因有:   uploads文件夹无权限,windows上增加iis账户读写权,linux上修改为777即可      

Published on 2017-04-05 18:57

Disclaimers:

This document is written by kenw2004 Original published on WeCenter ,The copyright belongs to the author。

Log in,More exciting content waiting for you to find,Contribute wonderful answers,Participate in comment interaction

go Sign in! No accountgoregister

风见雨下
2017-04-08 17:25
手机上好像还有一种原因 就是用户没有上传权限 但是上传按钮会存在 算是小bug吧
工作经验
2017-04-05 20:00
确实兄弟给力,帮着解决掉了,非常酷
All Rights Reserved Powered BY WeCenter V4.1.0 © 2023 粤ICP备17116736号