首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Smf图片上传故障

Smf图片上传故障
EN

Stack Overflow用户
提问于 2013-05-10 04:25:07
回答 1查看 1.5K关注 0票数 0

各位,请帮帮我。

smf 2.0.4有以下问题(最新版本)

用户不能上传图片,即使是最小的图片。其他文件扩展名通过得很好。

尝试了以下操作:

tracking $_FILES -无错误,

上传为管理员,添加额外的附件文件夹,检查服务器可用空间,论坛设置附件限制设置为最大。还增加了所有可能的php.ini限制。Chdmod对于所有文件夹是755,对于attachments文件夹也是777。请告诉我可能出了什么问题?

我的phpinfo在这里http://tinyurl.com/bqxchl8

错误消息如下:

Your attachment couldn't be saved. This might happen because it took too long to upload or the file is bigger than the server will allow.

Please consult your server administrator for more information.

EN

回答 1

Stack Overflow用户

发布于 2013-08-07 14:33:45

三个月后,但是...

检查Attachments and Avatars类别Attachment Settings所在的SMF Admin,并确保您上传的图像文件的文件扩展名位于Allowed attachment extensions设置的逗号分隔列表内。

您还需要更改其中的其他设置,例如:

Max attachment folder space Max attachment size per post Max size per attachment Max number of attachments per post

此外,请确保未选中Perform extensive security checks on uploaded image attachments设置。这可能会导致拒绝的图像附件,因为这在SMF中有一些错误。

如果您将所有这些设置都设置为0,那么它将是无限的!因此,对这些没有任何限制。

如果上传图像文件仍有问题,请返回Admin -> Attachments and Avatars -> Attachment Settings并取消选中:Re-encode potentially dangerous image attachments

祝你好运,希望这对你有所帮助。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/16470470

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档