使用uploadify的HTTP错误302 [英] HTTP Error 302 using uploadify

查看:38
本文介绍了使用uploadify的HTTP错误302的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用uploadify将文件上传到我的网站.

I use uploadify to upload files into my web site.

它与一家托管公司合作.并且不与其他公司(sweb.ru).

It works with one hosting company. And doesn't with other company (sweb.ru).

错误是:HTTP 错误:302.

Error is: HTTP error: 302.

有谁知道如何解决这个问题.谢谢.

Does Anybody know how to resolve this problem. Thanks.

推荐答案

对于使用 Uploadify 和 PHP 框架(例如 CodeIgniter、CakePHP、Kohana、Yii 等)遇到此问题的任何人:

For anyone having this problem with Uploadify and a PHP Framework (e.g., CodeIgniter, CakePHP, Kohana, Yii, etc.):

Flash 不会传递您现有的 PHP 会话信息,因此如果您收到 302 错误,很可能是您的应用程序将登录 URL 返回给 Flash 播放器.要解决此问题,您可以将会话信息包含在 scriptData 中,并在您的应用程序中手动管理.

Flash will not pass through your existing PHP Session information, so if you are getting the 302 error it is likely that your application is returning the login URL to the Flash player. To resolve this issue, you could include the session information in scriptData and manage it manually in your application.

这篇关于使用uploadify的HTTP错误302的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆