Flash 一次仅在域上上传 2 个文件,FileReference.upload 限制
我正在创建 Flash 上传器并希望一次开始 10 个上传。 但 Flash 一次只在域上上传 2 个文件,其他参考文献在等待。
在带有 ActiveX Player 的 IE 中,一次限制约为 6 个文件。
有什么想法如何改变这个限制吗? 对于上传,我需要使用 FileReference.upload 而不从文件数据创建 URLRequest 对象。
提前致谢。
I am creating flash uploader and want to start 10 uploadings at time.
But flash upload only 2 files on domain at time, other references wait for something.
In IE with ActiveX Player limitation is about 6 files at time.
Is there any ideas how to change this limitation?
For uploading I need to use FileReference.upload without creating URLRequest object from file data.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我很久以前就研究过这个问题,但没有找到解决办法。实际上,该限制根本不是因为 Flash,而是因为运行 Flash 的应用程序/浏览器。任何网络连接请求或推送都是通过 Flash Player 及其运行环境的 API 发生的。不过,我可能有一个解决问题的建议。尝试在您的网站上创建 10 个子域,所有子域都指向同一服务器,并让上传逻辑使用每个域进行上传。这“应该”欺骗浏览器/系统以允许额外上传,因为限制是基于域的(我认为)。
希望这有帮助!
I've looked into this once a long time ago and found no way around this. The restriction actually isn't because of Flash at all, but rather the application/browser running Flash. Any net connection request or push happens through the API of the Flash Player and it's running environment. However, I might have a suggestion to solve the problem. Try creating 10 subdomains on your site that all point to the same server and have the upload logic use each one of the domains for the upload. This 'should' trick the browser/system to allow additional uploads as the restriction is domain based (I think).
Hope this helps!