如何诊断仅在 OS X 客户端上失败的上传
我们最近将服务器升级到 PHP 5,文件上传现在失败,但仅限于 OS X 客户端(Safari 5、Firefox 3.6),尽管 Windows 上的相同浏览器版本运行良好。
该代码失败,因为使用 Mac 客户端软件时 is_uploaded_file()
返回 false。
以前有人遇到过这个错误吗?
关于如何诊断此问题的原因有什么建议吗?
We recently upgrade our server to PHP 5 and file uploads are now failing, but only from OS X clients (Safari 5, Firefox 3.6) although the same browser versions on Windows work fine.
The code is failing as is_uploaded_file()
is returning false when using Mac client software.
Has anyone had this error before?
Any suggestions for how I might diagnose the cause of this problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
有多少 MacOSX 用户报告了此问题?您的 Mac 用户只是一小部分,还是全部?您附近有 Mac 可以重现该问题吗?如果像 is_uploaded_file 这样常见的 PHP 文件是问题所在,我会感到惊讶。我倾向于客户端问题或网络问题。您可以检查日志文件(如果您使用的是 apache /var/log/apache2 或 /var/log/httpd)以获取上传连接信息或可能的错误
How many MacOSX users are reporting this issue? Just a small portion of your mac users, or all of them? Do you have a Mac nearby to reproduce the problem? I'd be surprised if a PHP file as common as is_uploaded_file is the problem. I'd lean towards issues on the client side, or network issues. You could check the log files (if you are using apache /var/log/apache2 or /var/log/httpd) for their upload connection information or possible errors
我最近也遇到了这个问题 - 不过只有 safari。我还没有时间进行修复,但打算看看这里的建议:
safari upload woes - http://www.webmasterworld.com/macintosh_webmaster/3341383.htm
我同意这不太可能是 php 问题。
I have had this problem recently as well - only with safari though. I haven't had time to do a fix yet, but was going to look at what is suggested here:
safari upload woes - http://www.webmasterworld.com/macintosh_webmaster/3341383.htm
I agree that this is most not likely a php problem.