只有在同一台计算机上从 IE 成功上传后,Fancy Upload 才能在 Firefox 中运行吗?

发布于 2024-12-13 11:06:18 字数 428 浏览 5 评论 0原文

使用 Firefox 通过 fancy upload 的本地实例上传文件时,会触发 onComplete 回调。但检查文件系统时发现上传尚未完成。

如果我随后在 IE8 中测试该功能,则上传工作没有问题。

然后,IE上传后,我再次在Firefox中测试,现在Firefox可以正常工作了。

注释

  • 我使用的域名是 http://localhost
  • 我使用的是 PHP 5.2
  • 我有最新的 mootools安装了更多组件,并且所有组件都启用了兼容性。

When uploading a file through a local instance of fancy upload with Firefox, the onComplete callback is fired. However when checking the file system, the upload has not completed.

If I then test the function in IE8, the upload works with no problem.

Then, after the IE upload, I test again in Firefox, now Firefox works with no problem.

Notes

  • The domain I am using is http://localhost
  • I am on PHP 5.2
  • I have the latest mootools installed and a lot of components from more, all with compatibility enabled.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

老子叫无熙 2024-12-20 11:06:19

会话

答案似乎在于不同浏览器通过 Flash 对象处理会话数据的方式。

在我的上传方法中,我使用会话来处理一些用户数据,但是会话属于 Flash 对象,而不是用户。

上传后,IE 可以访问 Flash 对象添加的数据,而 Firefox 则不能。

这会导致一些奇怪的行为。我现在修改了代码以避免使用会话数据。

Sessions

The answer seems to lie in the way the different browsers handle session data via the Flash object.

In my upload method I use the session to handle some user data, however the session belongs to the flash object, not the user.

Then after the upload, IE is able to access the data added by the Flash object whereas Firefox cannot.

This results in some strange behavior. I have now modified my code to avoid using session data.

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