如何诊断仅在 OS X 客户端上失败的上传

发布于 2024-10-17 16:05:14 字数 217 浏览 1 评论 0原文

我们最近将服务器升级到 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

云胡 2024-10-24 16:05:14

有多少 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

弱骨蛰伏 2024-10-24 16:05:14

我最近也遇到了这个问题 - 不过只有 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文