了解 plupload 中的运行时
据我所知,PlUpload 支持多种运行时(html5、html4、gears、flash 等)。 但现在大多数浏览器都支持 Flash。大多数其他文件上传器(即:uploadify、fancy upload 等)将通过 javascript 和 flash 的组合来运行。并且相同的文件上传器仅支持一个运行时,即flash。如果我在这里错了,请纠正我。
即使没有安装flash播放器插件。开发人员可以轻松集成闪存检测工具并将用户重定向到下载链接。这对于几个网站来说是最常见的。
这让我想到了这个问题。当闪存已经足够时,为什么需要在 pluploader 中包含任何其他运行时?
I understand that PlUpload supports several runtimes (html5, html4, gears, flash, etc).
But most browsers now a days support flash. And most other file uploaders (namely: uploadify, fancy upload, to name afew) would function via a combination of javascript and flash. And the same file uploaders only support ONE runtime, which is flash. Please correct me if I am wrong here.
Even if the flash player plugin is not installed. A developer can easily integrate flash detection tools and redirect users to a download link. Which is most common for several sites.
Which brings me to the question. Why the need to include any other runtime in pluploader, when flash is enough?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
闪存并不总是一种选择。我的公司环境中有一些用户无法在其计算机上安装软件,并且只能使用较旧的浏览器版本。 Plupload 允许我为大多数用户向我的网站添加功能,而不会牺牲无法安装 Flash 的用户。
Flash is not always an option. I have users in corporate environments who cannot install software on their machines and are stuck in older browser versions. Plupload allows me to add functionality to my site for most users without sacrificing users who cannot install Flash.
为什么我们在 Plupload 中有其他运行时是因为 Flash 上传有很多错误。例如,它无法对文件进行分块并保留适当的进度,默认情况下它不发送 cookie/会话信息,并且它在 SSL 方面存在各种问题。另一方面,Silverlight 可以加载文件的一部分并发送它,而不会出现丢失进度或 cookie 的任何问题。因此,我们倾向于建议将其作为 Flash 之前的后备方案,以获得更好的结果,但 Silverlight 的安装基础远远少于 Flash。
Why we have other runtimes in Plupload is the fact that Flash upload is very buggy. For example it can't chunk files and retain proper progress, it doesn't send cookie/session information by default and it has various problems with SSL. Silverlight on the other hands can load part of a file and send it without any problems with missing progress or cookies. So we tend to recommend having that as a fallback before flash to get better results however the install base for Silverlight is far less than Flash.