Uploadify无法打开文件浏览器? [英] Uploadify fails to open file browser?

查看:111
本文介绍了Uploadify无法打开文件浏览器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在PHP应用程序顶部运行的uploadify实现.在我的测试机上运行正常.但是,我只是将其上传到我的生产机器上,但是失败了. Uploadify正确替换了输入字段并显示了按钮.但是,单击该按钮时,什么也不会发生.完全无法打开文件浏览器.没错只是安静失败.有什么想法可能会出问题吗? php.ini中有东西吗?我还没有下载一个mod?我很茫然.

I have an implementation of uploadify running on top of a PHP application. It was working just fine on my test machine. However, I just uploaded it on to my production machine and it is failing. Uploadify correctly replaces the input field and presents the button. However, when the button is clicked nothing happens. It completely fails to open the file browser. No error. Just quiet fail. Any ideas what could be going wrong here? Something in the php.ini? A mod I haven't downloaded? I'm at a loss.

编辑:当我通过链接访问并直接加载uploadify.swf Flash时,效果很好.显示按钮,单击它,然后出现文件浏览器.但是,当我将其加载到网页中时,它不起作用.该按钮会显示,但是单击它不会产生任何效果.

Edit: When I follow the links through and load the uploadify.swf flash directly it works fine. The button shows, click on it and the file browser appears. But when I load it in the web page, it doesn't work. The button shows, but clicking on it yields nothing.

推荐答案

我跨域调用脚本失败.从www.example.com调用脚本时,我的$.uploadify调用在example.com查找脚本.这导致它失败.

It failed do to my calling the script across domains. My $.uploadify call looked for the script at example.com when it was being called from www.example.com. This caused it to fail.

如果遇到此问题,请确保脚本不要尝试跨子域调用.

If you encounter this problem, ensure your scripts don't attempt to call across subdomains.

这篇关于Uploadify无法打开文件浏览器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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