Uploadify fails to open file browser?

亡梦爱人 提交于 2020-01-06 09:39:08

问题


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.

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.


回答1:


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.



来源:https://stackoverflow.com/questions/4012417/uploadify-fails-to-open-file-browser

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!