php swfupload官网,【原创】swfupload 上传报 security error # 2049 (security) 安全错误问题...

本文探讨了Flash播放器在进行文件上传时遇到的跨域限制问题,这是由于Flash Player的安全策略所导致的。文中提到AJAX和iFrames/JavaScript同样受到同源策略的约束。为了解决这一问题,可以通过在服务器上设置安全策略XML文件来允许跨域上传。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

官方文档:

http://demo.swfupload.org/Documentation/

官网给出了理由:

c6ecf154f5a218079c86d340f38f7164.png

老外给出类似理由:

大致是说这个是flash播放器自身组件安全策略问题, 禁止跨域上传的.

I believe this is due to the Flash Player's "same origin" policy. This means that Flash can only upload to the same server that served the swf file. AJAX (XmlHttpRequest) and iFrames /w JavaScript have the same restriction.

You can get around this in Flash Player by setting up security policy XML files on the server. I've never done this and I'm not sure how it all works but the Adobe Flash website has details.

解决方案:

修改你服务器上的XML安全策略文件,开放当前域名的上传限制,内容类似如下:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值